Doug, first and foremost thank you for helping out with this thread. I
honestly don't know how I missed it.
MacNut, you don't want the File Dialog window to popup as you are supplying
the output filename and path.
blRet = ConvertReportToPDF(Me.lstRptName, vbNullString, "C:\" &
Me.lstRptName.Value & ".pdf", False)
If you do not want the function to try and display the saved PDF in the
Registered PDF app on your system then simply add another False param at the
end of the function call.
blRet = ConvertReportToPDF(Me.lstRptName, vbNullString, "C:\" &
Me.lstRptName.Value & ".pdf", False, False)
I'm not sure why you are having a problem here with the function call. It is
detailed in the source code behind the sample HowToUse form.
' The function call is:
'Public Function ConvertReportToPDF( _
'Optional RptName As String = "", _
'Optional SnapshotName As String = "", _
'Optional OutputPDFname As String = "", _
'Optional ShowSaveFileDialog As Boolean = False, _
'Optional StartPDFViewer As Boolean = True, _
'Optional CompressionLevel As Long = 0, _
'Optional PasswordOwner As String = "", _
'Optional PasswordOpen As String = "", _
'Optional PasswordRestrictions As Long = 0 _
') As Boolean
' RptName is the name of a report contained within this MDB
' SnapshotName is the name of an existing Snapshot file
' OutputPDFname is the name you select for the output PDF file
' ShowSaveFileDialog is a boolean param to specify whether or not to display
' the standard windows File Dialog window to select an exisiting Snapshot
file
' CompressionLevel - not hooked up yet
' PasswordOwner - not hooked up yet
' PasswordOpen - not hooked up yet
' PasswordRestrictions - not hooked up yet
--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.