Click here to Skip to main content
15,894,267 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: using steganography techniques on XML doc Pin
DavidNohejl3-Apr-05 13:30
DavidNohejl3-Apr-05 13:30 
GeneralRe: using steganography techniques on XML doc Pin
sunshine_c4-Apr-05 22:05
sunshine_c4-Apr-05 22:05 
GeneralGenerate C++ classes from XML schema Pin
RoyceF1-Apr-05 7:30
RoyceF1-Apr-05 7:30 
GeneralXML Expert Advice Needed! XMLDOM VS XML Reader Pin
Ian Bowler31-Mar-05 5:35
Ian Bowler31-Mar-05 5:35 
GeneralRe: XML Expert Advice Needed! XMLDOM VS XML Reader Pin
DavidNohejl31-Mar-05 10:52
DavidNohejl31-Mar-05 10:52 
GeneralRe: XML Expert Advice Needed! XMLDOM VS XML Reader Pin
Ian Bowler1-Apr-05 6:11
Ian Bowler1-Apr-05 6:11 
GeneralRe: XML Expert Advice Needed! XMLDOM VS XML Reader Pin
raman_learn10-Apr-05 18:44
raman_learn10-Apr-05 18:44 
GeneralQuery Engine Error Pin
dotnetquery31-Mar-05 0:09
dotnetquery31-Mar-05 0:09 
Hi All,

I am trying to build an application in VS.Net which uses Crystal Report 11 to build the rpt file. I have an XML and XSD file as my datasources. I want to view the report in PDF format. Now my source code looks like:


ReportDocument doc = new ReportDocument();
string fileName = Server.MapPath("MyReport.rpt");
doc.Load(fileName);

DataSet ds = new DataSet();
ds.ReadXml(Server.MapPath("MyXML.xml"));

doc.SetDataSource(ds);

ExportOptions exportOpts = doc.ExportOptions;
exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat;
exportOpts.ExportDestinationType = ExportDestinationType.DiskFile;
exportOpts.DestinationOptions = new DiskFileDestinationOptions();

DiskFileDestinationOptions diskOpts = new DiskFileDestinationOptions();
((DiskFileDestinationOptions)doc.ExportOptions.DestinationOptions).DiskFileName = Server.MapPath("MyPDF.pdf");

doc.Export();


But it gives me the error
"Query Engine Error: 'c:\inetpub\wwwroot\MyWebsite\MyReport.rpt'"

I tried out all the forums but could not find any solution. Someone told me that it is due to xsd file error. But in Crystal Report it is running perfectly OK. Can anyone help.
Edit/Delete Message
Generalabout gml maps Pin
reneemarukot29-Mar-05 4:46
reneemarukot29-Mar-05 4:46 
QuestionHow do you get the underlying stylesheet content of an XslTransform object Pin
sliu0@yahoo.com26-Mar-05 5:28
susssliu0@yahoo.com26-Mar-05 5:28 
QuestionXSL-Transforming a nestet structure to a flat structure - possible? Pin
Uwe Keim25-Mar-05 19:15
sitebuilderUwe Keim25-Mar-05 19:15 
Generaldynamically creating selection box in xslt Pin
jignatiu22-Mar-05 23:44
jignatiu22-Mar-05 23:44 
GeneralRe: dynamically creating selection box in xslt Pin
jignatiu22-Mar-05 23:53
jignatiu22-Mar-05 23:53 
GeneralRe: dynamically creating selection box in xslt Pin
DavidNohejl23-Mar-05 1:40
DavidNohejl23-Mar-05 1:40 
GeneralRe: dynamically creating selection box in xslt Pin
jignatiu24-Mar-05 0:57
jignatiu24-Mar-05 0:57 
QuestionWhat is the difference between Xpath/XSL/XSLT Pin
satishrg16-Mar-05 14:05
satishrg16-Mar-05 14:05 
AnswerRe: What is the difference between Xpath/XSL/XSLT Pin
DavidNohejl17-Mar-05 6:22
DavidNohejl17-Mar-05 6:22 
GeneralRe: What is the difference between Xpath/XSL/XSLT Pin
raman_learn10-Apr-05 18:50
raman_learn10-Apr-05 18:50 
Generalsqlcommand Pin
Anonymous16-Mar-05 4:27
Anonymous16-Mar-05 4:27 
GeneralRe: sqlcommand Pin
raman_learn10-Apr-05 18:51
raman_learn10-Apr-05 18:51 
GeneralConditional Tables Pin
Bassam Abdul-Baki16-Mar-05 2:31
professionalBassam Abdul-Baki16-Mar-05 2:31 
GeneralRe: Conditional Tables Pin
DavidNohejl17-Mar-05 6:47
DavidNohejl17-Mar-05 6:47 
GeneralRe: Conditional Tables Pin
Bassam Abdul-Baki18-Mar-05 7:04
professionalBassam Abdul-Baki18-Mar-05 7:04 
GeneralRe: Conditional Tables Pin
raman_learn10-Apr-05 19:04
raman_learn10-Apr-05 19:04 
GeneralRe: Conditional Tables Pin
Bassam Abdul-Baki11-Apr-05 2:04
professionalBassam Abdul-Baki11-Apr-05 2:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.