Exporting Crystal.NET Report to PDF

  • Thread starter Thread starter Kerri
  • Start date Start date
K

Kerri

??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????.???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
 
What is it that you are trying to do? Desktop/Web App? On the desktop,
make sure the ShowExportbutton is true or you can just write the code
youself. If you don't want to do this, you can call the .ExportReport
method of the Viewer and you will be prompted witha SaveAs dialog and PDF
is one of your choices.

If you are on the web, you can manipulate the plug in but basically you give
it a destination, call myReport.Export, Response.ClearContent
Response.ClearHeaders
Response.ContentType = "application/pdf"
Response.WriteFile(myFileName)
Response.Flush
REponse.Close
then delete the file form the server.

If you let me know what you are trying to do in a little more detail, I can
probably be of more assistance.

HTH,

Bill
????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????
??????????????????????????????????????????????????????????????????????.?????
????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????
??????????????????????
 
Back
Top