Crystal Reports in web project

R

Rodrick

Hi,
Can anyone help me with calling and using Crystal Reports in ASP.NET
webmatrix ?
Any links / samples / code snippets please ??
I have got a deadline to meet :(
Thanks all.
 
G

Guest

Maybe this link give you any help:
http://support.businessobjects.com/communityCS/FilesAndUpdates/csharp_win_samples.exe.asp (also available for other languages)

In your webapp you can generate a PDF and then show this one.
sample:
crReportDocument = new Reports.YourReport();
System.IO.MemoryStream ReportStream =
(System.IO.MemoryStream)crReportDocument.ExportToStream
(ExportFormatType.PortableDocFormat);
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/pdf";
Response.BinaryWrite(ReportStream.ToArray());
Response.End();


Don't forget to apply userid and password, since this information isn't
saved in the report.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top