Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

End user design report problem

Status
Not open for further replies.

beginner81

Programmer
Oct 27, 2003
44
MY
Hi. Im having the problem to design an end-user report . What should i do at first ?? Do i need to
pre-designed one and save it as the templates, so the end-users can load
the template when they want to design their own report ? IF yes, then
how? for ya info, im using the Dev Express XtraReport Designer

One more thing here, when i link a button to a report and export it
in .pdf file, the following error occur:

"An unhandled exception of type 'System.IO.IOException' occured in
mscorlib.dll

Additional information: The filename, directory name, or volume label
syntax is incorrect."

wat's wrong with the message ? for ur info, here is my code:

private void button1_Click(object sender,
System.EventArgs e)
{
XtraReport1 report = new XtraReport1();
report.CreatePdfDocument("c:\report.pdf");
report.ShowPreview();
}

and this is the library i've included.
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using DevExpress.XtraReports;

Hope someone can help as im in crying need now. Thanks in advance.
 
>>>Additional information: The filename, directory name, or volume label
syntax is incorrect."

Write :
[code
report.CreatePdfDocument("c:\\report.pdf");
[/code]

Also use try-catch block :
Code:
try
{
XtraReport1 report = new XtraReport1();
            report.CreatePdfDocument("c:\report.pdf");
            report.ShowPreview();
}
catch (Exception ex)
{
  string sErr = ex.GetType() + ex.Message;
}
[code]
-obislavu-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top