I m trying to export a crystal report (developed in Crystal 11) and in the same vbscript have that report sent to a network printer. Is there another option for destinationType = printer or do you know of a better way to accomplish this?
below is the code that works that send my report to a pdf file.
'-- Set Export Options
orpt.ExportOptions.DestinationType = 1 '-- to file
orpt.ExportOptions.PDFExportAllPages = True
orpt.ExportOptions.FormatType = 31 '-- to PDF
orpt.DiscardSavedData
If rptParamaterField <> "" then
oRpt.ParameterFields.GetItemByName("Extract Date").AddCurrentValue(rptDate)
End if
orpt.VerifyOnEveryPrint = True
orpt.ExportOptions.DiskFileName = rptDir & rptName &".pdf"
orpt.Export (False)
' Now i want to add code that automatically sends to the report to a network printer (\\lghdns3\boclp3)
any thoughts on this?
Thanks, dgr
below is the code that works that send my report to a pdf file.
'-- Set Export Options
orpt.ExportOptions.DestinationType = 1 '-- to file
orpt.ExportOptions.PDFExportAllPages = True
orpt.ExportOptions.FormatType = 31 '-- to PDF
orpt.DiscardSavedData
If rptParamaterField <> "" then
oRpt.ParameterFields.GetItemByName("Extract Date").AddCurrentValue(rptDate)
End if
orpt.VerifyOnEveryPrint = True
orpt.ExportOptions.DiskFileName = rptDir & rptName &".pdf"
orpt.Export (False)
' Now i want to add code that automatically sends to the report to a network printer (\\lghdns3\boclp3)
any thoughts on this?
Thanks, dgr