Asp.NEt
-
I have created an asp.net application(vb.net code behind) I have used crystal report as the reporting tool and used pdf for printing the values from the report.I used thebelow code for printing from the pdf document.while I uploaded it nothing is shown as report.But in local copy it is working.Pls give some suggestions Dim Export_Options As ExportOptions Dim Disk_FileDestinationOptions As DiskFileDestinationOptions Dim File_Name As String Dim Report_Filename As String File_Name = System.AppDomain.CurrentDomain.BaseDirectory + Report_Filename + ".pdf" Disk_FileDestinationOptions = New DiskFileDestinationOptions Disk_FileDestinationOptions .DiskFileName =File_Name Export_Options = CrptDoc.ExportOptions With Export_Options .DestinationOptions = Disk_FileDestinationOptions .ExportDestinationType = ExportDestinationType.DiskFile .ExportFormatType = ExportFormatType.PortableDocFormat End With CrystalReportdocument.Export() Response.ClearContent() Response.ClearHeaders() Response.ContentType = "application/pdf" Response.WriteFile(File_name) Response.Flush() Response.Close() System.IO.File.Delete(File_name) End Sub
-
I have created an asp.net application(vb.net code behind) I have used crystal report as the reporting tool and used pdf for printing the values from the report.I used thebelow code for printing from the pdf document.while I uploaded it nothing is shown as report.But in local copy it is working.Pls give some suggestions Dim Export_Options As ExportOptions Dim Disk_FileDestinationOptions As DiskFileDestinationOptions Dim File_Name As String Dim Report_Filename As String File_Name = System.AppDomain.CurrentDomain.BaseDirectory + Report_Filename + ".pdf" Disk_FileDestinationOptions = New DiskFileDestinationOptions Disk_FileDestinationOptions .DiskFileName =File_Name Export_Options = CrptDoc.ExportOptions With Export_Options .DestinationOptions = Disk_FileDestinationOptions .ExportDestinationType = ExportDestinationType.DiskFile .ExportFormatType = ExportFormatType.PortableDocFormat End With CrystalReportdocument.Export() Response.ClearContent() Response.ClearHeaders() Response.ContentType = "application/pdf" Response.WriteFile(File_name) Response.Flush() Response.Close() System.IO.File.Delete(File_name) End Sub
Are you sure, you have used proper deployment techniques for deploying asp.net applications bundled with crystal reports. There are licensing issues and you'd also need to include the crystal merge modules in your deployment package. Check it out here.. http://www.businessobjects.com/communityCS/TechnicalPapers/crnet_deployment.pdf[^] Hope it helps, cheers, [r a w] I do not understand what I do. For what I want to do I do not do, but what I hate I do. - Romans 7:15