2 Replies Latest reply on Jan 13, 2010 12:54 AM by Nishatry

    How to link text frame ?

    Nishatry Level 1

      hi,

       

      I am trying to generate  pdf from xml by loading xml into a predefined format.

       

      Sample Code

       

              cstrInddFile = Server.MapPath("~/Indesign_XML/DesingTemplate.indd")   ---- contains  marked palceholders
              cstrXMLFile = Server.MapPath("~/Indesign_XML/item.xml")
              myInDesign = CreateObject("InDesign.Application.CS4")
             Dim objDoc As InDesign.Document = CType(myInDesign.Open(cstrInddFile, False), InDesign.Document)
             objDoc.ImportXML(cstrXMLFile)

             objDoc.Export(idExportFormat.idPDFType, "D:/Test4.pdf")

       

      Problem : the pdf file is created but contains one page, how will it display all the data in xml file.

      My sample xml is (I have tagged the textframe with story tag)

       

      <NewDataSet>
        <Story>
        <Table>
          <ProductId>34</ProductId>
          <ItemId>267</ItemId>
          </Table>
         </Story>
      </NewDataSet>

       

      Please reply someone.