generating reports onPDF format for the source being XML file
We were trying to generate PDF documents for the purpose of report generation and we' want to use XML files as its source...please help
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bechir BejaouiPosted Apr 12, 2008, 6:45 AM
- A from Called Crystal report gallery will appear click OK button
- A
from Called Standard Report wizard Appears expand the New connection
tree view node at left then click the data base files node a open
dailog box appearts
- Browse to your XML file in your hard disk or in your local network after selecting the XML file as file type
- The
file nodes appear in the treeview select your data that you want to
export to pdf from the xml file hieherachy add click the > labelled
button the targeted nodes will apeart at the right in the list click
next
- Same think for the next wizard page select the field
to be displayed and click the > labelled button then
next>next>Finish
- Now you have a crystal report linked to the xml file
In windows contextNow browse to your code editor and then impelement this method that export the xml file to a pdf doc as follow
CrystalReport1 myReport = new CrystalReport1();
myReport.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, @"C:\Generated.pdf");
MessageBox.Show("Job is done!!!");
In a web context
use ExportToHttpResponse instead of Export to disk