Hi,
This is driving me nuts, I have created a custom print preview dialog, I
have a toolbar at the top of the window that allows the user to select a
page setup dialog and a printer dialog. All is working well so far but now
I want to handle the situation where the user has used the printer dialog to
set the pages they want to print, ie I have a three page report, but they
might want to only print page 1 and 3.
My attempt is as follows:
Dim PageArray As ArrayList, PRange As Printing.PrintRange
PRange = MyDoc.PrinterSettings.PrintRange
PageArray = PRange.GetValues(xxx) 'xxx is said to be "EnumType as
System.type" I want to say "Selection" but I can't find the correct syntax
I then want to say "If pagearray contains 2 then print page 2" and so on.
Does anyone know what the EnumType is that I need or know of a better way of
working out which pages the user has chosen in the print dialog??
Any help much appreciated.
Siv, Martley, Near Worcester, UK