Hi Fergus,
I don't think this answers the issue. First, I see no conversion to .pdf -
to print the cr report and convert it inside cr is trivial, and he's not
asking that. Also, why should he need a pdfwriter driver? If you can
convert to .pdf inside cr, then cr has the driver internally, no? And since
you can do this inside cr, there must be a way to code it as part of the
object model of the reportdocument.
Bernie Yaeger
"Fergus Cooney" <fi******@tesco.net> wrote in message
news:uy*************@tk2msftngp13.phx.gbl...
Hi Jde,
If you can print your Crystal Report from Windows Explorer, and have a
PdfWriter printer driver, then you can use something like:
'In Shell.vb
Imports System.Diagnostics
Public Class Shell
Public Shared Sub Print (sFileName As String)
Dim p As New ProcessStartInfo()
p.FileName = sFileName
p.Verb = "print"
p.UseShellExecute = True
p.WindowStyle = ProcessWindowStyle.Hidden 'This may have no
effect Try
Process.Start(p)
Catch e As Exception
MsgBox ("Couldn't print " & p.FileName & vbCrLf &
e.Message) 'or
Throw New Exception ("Couldn't print " & p.FileName, e)
End Try
End Sub
End Class
'Elsewhere
Shell.Print ("C:\Exciting\Some_Crystal_Report.rpt")
Regards,
Fergus