Posted 28 October 2024, 8:08 am EST
Active report 10 .
Exporting report in Pdf with Mozilla i have this error : “Object variable or With block variable not set”
( the same code with Chrome works )
This is the code
[code]
Dim _today As String = Today.ToShortDateString + Now.ToShortTimeString
Dim _file As String = “”
_file = Server.MapPath(“Documents/Offerts/”)
Name_File = file & "Offerta" & _today.Substring(6, 4) & _today.Substring(3, 2) & _today.Substring(0, 2) & _today.Substring(10, 2) & _today.Substring(13, 2) & “.Pdf”
Dim MyPDF As New GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport Try MyPDF.Export(WebViewer1.Report.document, Name_File) Catch Errore As Exception LabMsg.Text = Errore.Message End Try[/code]
I try also with “~/Documents/Offerts/”