-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: LovedJohnySmith
Message 2 in Discussion



Hi,



If u wanna export Crystal report into
PDF?? or u wanna create PDF Document???



if u r requirement is to export into
PDF format, Then

  pls Use this piece of code



         
      private
void
__ExportToPDF(ReportDocument objReport)

         
      {

         
              ExportOptions
crExportOptions;

         
              DiskFileDestinationOptions
crDiskFileDestinationOptions = new
DiskFileDestinationOptions();

         
              string
Fname;



         
              Fname
= @"C:\\" + Session.SessionID.ToString() +".pdf";



         
              crDiskFileDestinationOptions.DiskFileName
= Fname;

         
              crExportOptions
= objReport.ExportOptions;

         
              crExportOptions.DestinationOptions
 = crDiskFileDestinationOptions;

         
              crExportOptions.ExportDestinationType
= ExportDestinationType.DiskFile;

         
              crExportOptions.ExportFormatType
= ExportFormatType.PortableDocFormat;





         
              objReport.Export();



         
              Response.ClearContent();

         
              Response.ClearHeaders();

         
              Response.ContentType
= "application/pdf";

         
              Response.WriteFile(Fname);

         
              Response.Flush();

         
              Response.Close();

         
              

         
              // To
Delete temporary PDF

         
              System.IO.File.Delete(Fname);





         
      }



oso u can find article from 
"ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/crystlmn/html/crtskexportingwebbasedreports.htm"



or else if u wanna create PDF format, pls
refer these sites.,



  http://www.ppdf.com/

  http://www.customreports.com/





I hope this will help u, pls lemmi noe if
u have any more queries,



thanx and regards,

smith







-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to