Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing Question...
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Printing Question...
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01199245
Message ID:
01199245
Views:
61
When using the AllowSomePages property of the PrintDialog box, I havn't been able to figure out how to actually get the Start and End pages area to populate with the range of pages the represent the entire document. It always shows up as 0 and 0 in both boxes.

Anyone know what I am missing?
.
.
.
'***************************************
' Create Print Dialog & Set Options
'***************************************
Dim objPrintDialog As New PrintDialog
objPrintDialog.AllowSomePages = True
objPrintDialog.Document = Me._objPrintDoc

'***************************************
' Process With Print If OK Pressed
'***************************************
If objPrintDialog.ShowDialog() = DialogResult.OK Then
    Me._objPrintDoc.Print()
End If
.
.
.
________________________
Ben Santiago, MCP & A+
Programmer Analyst (SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS)
Eastern Suffolk BOCES - Student Data Services


Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
-Rich Cook
Reply
Map
View

Click here to load this message in the networking platform