When I attempt to show the standard windows print dialogue for the PDFCreativeX control by using the command
PDFCreativex1.StartPrint "", True
Thestandard dialogue box appears but I cannot enter a page range selection as this is greyed out. Is there a way to use the standard print dialogue box with the selection function enabled?
The version of the control is 2.0f
Regards
Kris
Page Range Printing
Hello,
This situation you have encountered can be resolved by placing the print() function within a With/End With. This happens because Visual Basic is trying to call the VB Printer object and not the PDF Creator’s print() function.
Another option is to object.[Print] (i.e. the Print method between brackets) instead of the With/End method.
Hope this helps?
Private Sub cmdPrint_Click()
With PDF
'Print(PrinterName As String, Prompt As Long)
'If Prompt is set to True,
'the user is prompted with the printer selection dialog box.
'Prints to the default printer
'***Scaling Options
' .ScaleToPrinter = acScaleBoth
' .ScaleToPrinter = acScaleHorizontal
' .ScaleToPrinter = acScaleNone
' .ScaleToPrinter = acScaleVertical
' Example: Fit to Paper
' .ScaleToPrinter = acScaleBoth
.Print "", False
End With
End Sub
This situation you have encountered can be resolved by placing the print() function within a With/End With. This happens because Visual Basic is trying to call the VB Printer object and not the PDF Creator’s print() function.
Another option is to object.[Print] (i.e. the Print method between brackets) instead of the With/End method.
Hope this helps?
Private Sub cmdPrint_Click()
With PDF
'Print(PrinterName As String, Prompt As Long)
'If Prompt is set to True,
'the user is prompted with the printer selection dialog box.
'Prints to the default printer
'***Scaling Options
' .ScaleToPrinter = acScaleBoth
' .ScaleToPrinter = acScaleHorizontal
' .ScaleToPrinter = acScaleNone
' .ScaleToPrinter = acScaleVertical
' Example: Fit to Paper
' .ScaleToPrinter = acScaleBoth
.Print "", False
End With
End Sub