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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email/Export Crystal Report 1

Status
Not open for further replies.

zmcanally

Technical User
Jun 12, 2002
26
0
0
US
I am using asp.net and Crystal Report Apllication Server 9 to dynmaically view crystal reports based on data from a Sybase database. The viewing works fine (passing parameters and all), but now I need to export the report (to PDF) and email it. I am viewing the report as follows:

Protected WithEvents CrystalReportViewer1 As CrystalDecisions.Web.CrystalReportViewer
Dim rcDoc As ReportClientDocument
Dim ReportToShow
ReportToShow = Session("SelectedReport")
rcDoc.Open(ReportToShow)
CrystalReportViewer1.DisplayGroupTree = False
CrystalReportViewer1.ReportSource = rcDoc

Any help would be appreciated
 
Hi

We export to pdf all the time for display, people are used to viewing pdf. This is the additional lines you should use. Although the loop is not always required, it will not always load large reports properly if you don't use it.


Do While cryTwo.IsLoaded = False

Loop

cryTwo.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Server.MapPath("\reports\StudentdetailPDF.pdf"))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top