J
jaloplo
Hi,
I have an application that was moved to other server. Before the
changed, It works properly, but now, there is an error when it creates
a Crystal Report.
I would like to know if this code is correct or has something wrong or
not correct at all.
'------------------------------------------------------------------------------------------
Public Function GenerarInformePdf() As Stream
Dim client As ReportClientDocument
Dim miStream As Stream
On Error GoTo controlError
Set client = DameInforme()
Set miStream = New Stream
miStream.Open
miStream.Type = adTypeBinary
miStream.Write
client.PrintOutputController.Export(crReportExportFormatPDF,
0).ByteArray
miStream.Position = 0
Set GenerarInformePdf = miStream
Set miStream = Nothing
Exit Function
controlError:
Set GenerarInformePdf = Nothing
End Function
'------------------------------------------------------------------------------------------
I'm not able to know the error it produces, because the function is in
a dll file.
Thanks in advance!!!!
I have an application that was moved to other server. Before the
changed, It works properly, but now, there is an error when it creates
a Crystal Report.
I would like to know if this code is correct or has something wrong or
not correct at all.
'------------------------------------------------------------------------------------------
Public Function GenerarInformePdf() As Stream
Dim client As ReportClientDocument
Dim miStream As Stream
On Error GoTo controlError
Set client = DameInforme()
Set miStream = New Stream
miStream.Open
miStream.Type = adTypeBinary
miStream.Write
client.PrintOutputController.Export(crReportExportFormatPDF,
0).ByteArray
miStream.Position = 0
Set GenerarInformePdf = miStream
Set miStream = Nothing
Exit Function
controlError:
Set GenerarInformePdf = Nothing
End Function
'------------------------------------------------------------------------------------------
I'm not able to know the error it produces, because the function is in
a dll file.
Thanks in advance!!!!