asp.net - export crystal report to pdf without temp file programmatically in asp net -


how export crystal report pdf without temp file programmatically in asp net server end user. if remove write access of temp folder , cause error.our admin not giving access it.is option export crystal report pdf end user. please suggest.

        reportdocument.load(this.mappath("xyz.rpt"));         reportdocument.database.tables[0].setdatasource(dsreport.tables[0]);                    rptviewer.reportsource = salary_reportdocument;         rptviewer.visible = true;         rptviewer.databind();         reportdocument.exporttohttpresponse(crystaldecisions.shared.exportformattype.portabledocformat, response, true, "xyzreport"); 

something this

 {         exportoptions crexportoptions ;         diskfiledestinationoptions crdiskfiledestinationoptions = new diskfiledestinationoptions();         pdfrtfwordformatoptions crformattypeoptions = new pdfrtfwordformatoptions();         crdiskfiledestinationoptions.diskfilename = "c:\\csharp.net-informations.pdf";         crexportoptions = cryrpt.exportoptions;         {             crexportoptions.exportdestinationtype = exportdestinationtype.diskfile;             crexportoptions.exportformattype = exportformattype.portabledocformat;             crexportoptions.destinationoptions = crdiskfiledestinationoptions;             crexportoptions.formatoptions = crformattypeoptions;         }         cryrpt.export();     }     catch (exception ex)     {         messagebox.show(ex.tostring());     } 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -