By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,990 Members | 2,279 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,990 IT Pros & Developers. It's quick & easy.

How do you get the page numbers the user selected in a print dialog??

P: n/a
Siv
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
Mar 31 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.