Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing Question...
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Printing Question...
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01199245
Message ID:
01199245
Vues:
60
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
Répondre
Fil
Voir

Click here to load this message in the networking platform