Link to home
Start Free TrialLog in
Avatar of kibon
kibon

asked on

Crsytal report from c# to a new web tab or new window with ExportToHttpResponse

How do you export a crsytal report from c# to a new web tab or new window with ExportToHttpResponse
Avatar of furrybootsistheanswer
furrybootsistheanswer
Flag of Australia image

Try setting the attachment argument to True (below exports to pdf with a filename of AttachmentName).

reportDocument.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, True, "AttachmentName");
Avatar of kibon
kibon

ASKER

Setting the attachment argument is to allow the user to download and save the report not to direct it to another page.

I concocted a solution which is to save report display information is the Session, open a new page that is an empty aspx for which that code behind aspx.sc gets the information from the Session and displays the report.
Avatar of kibon

ASKER

Setting the attachment argument is to allow the user to download and save the report not to direct it to another page.

I concocted a solution which is to save report display information is the Session, open a new page that is an empty aspx for which that code behind aspx.sc gets the information from the Session and displays the report.
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial