Problem in saving PDF from crystal reports in asp
I found a activeXviewer in BusinessObjects.Using tht Im generating a PDF from a crystal reports....
Problem is "I want to save the PDF into my Local Disk or in a server directory".....
I have tried it but it is not getting saved.....
Here is the code...
================================================== ===========
Case "CRXF_PDF"
ExportOptions.FormatType = CREFTPORTABLEDOCFORMAT
ExportOptions.PDFExportAllPages = TRUE
GetExportPageRange startPage, endPage
If startPage > 0 Then
ExportOptions.PDFExportAllPages = False
ExportOptions.PDFFirstPageNumber = startPage
ExportOptions.PDFLastPageNumber = endPage
Else
ExportOptions.PDFExportAllPages = True
End If
Response.ContentType = "application/pdf"
Report.PaperOrientation = crPortrait
Report.ExportOptions.DestinationType = crEDTDiskFile
Report.ExportOptions.FormatType = crEFTPortableDocFormat
Report.ExportOptions.DiskFileName = "c:\abc.pdf"
Report.Export False
================================================== =======================
Can anyone help me .......Very Urgent
|