Hi!,
i've created a pdf form with LiveCycle Designer and I'm able to populate pdf form with xml data and show in the browser. I use this code (I'm working with asp and SQL Server 2005. xml is getting from a sql server database):
Response.ContentType="application/vnd.adobe.xdp+xml"
response.write "<?xml version=" & Chr(34) & "1.0" & Chr(34) & " encoding=" & Chr(34) & "ISO-8859-2" & Chr(34) & " ?>"
response.write "<?xfa generator=" & Chr(34) & "XFA2_0" & Chr(34) & " APIVersion=" & Chr(34) & "2.2.4333.0" & Chr(34) & "?>"
response.write "<xdp:xdp xmlns:xdp=" & Chr(34) & "http://ns.adobe.com/xdp/" & Chr(34) & ">"
response.write "<xfa:datasets xmlns:xfa=" & Chr(34) & "http://www.xfa.org/schema/xfa-data/1.0/" & Chr(34) & ">"
response.write "<xfa:data>"
response.write "<TopmostSubform>"
response.Write "<Name>Paul</Name>"
response.Write "<Surname>Weller</Surname>"
response.Write "<Band>The Jam</Band>"
response.write "</TopmostSubform>"
response.write "</xfa:data>"
response.write "</xfa:datasets>"
response.write "<pdf href=" & Chr(34) & "http://www.site.org/test.pdf" & Chr(34) & " xmlns="& Chr(34) &"http://ns.adobe.com/xdp/pdf/" & Chr(34) & "/>"
response.write "</xdp:xdp>"
response.flush
Response.End
It plays ok.
Now, I want to populate the same pdf (for example) and send it to the printer but I don't want its to be shown in the browser.
Can anybody help me?
Thanks!
Views
Replies
Total Likes