Click here to Skip to main content
15,891,943 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: What is the best method of adding controls Pin
CWIZO3-Apr-06 3:31
CWIZO3-Apr-06 3:31 
QuestionVS.2005 C# app deployment help needed Pin
BambooMoon31-Mar-06 10:44
BambooMoon31-Mar-06 10:44 
AnswerRe: VS.2005 C# app deployment help needed Pin
Dave Kreskowiak31-Mar-06 13:28
mveDave Kreskowiak31-Mar-06 13:28 
GeneralRe: VS.2005 C# app deployment help needed Pin
BambooMoon31-Mar-06 13:36
BambooMoon31-Mar-06 13:36 
QuestionIssue with DatabaseFactory.CreateDatabase Pin
venkaa31-Mar-06 10:25
venkaa31-Mar-06 10:25 
AnswerRe: Issue with DatabaseFactory.CreateDatabase Pin
Mr Brown Shoes31-Mar-06 14:58
Mr Brown Shoes31-Mar-06 14:58 
QuestionStringBuilder.Append(Char(0)) Issues Pin
AhClem31-Mar-06 9:29
AhClem31-Mar-06 9:29 
QuestionHow to decide in which page is printing? Pin
VBSiv31-Mar-06 2:11
VBSiv31-Mar-06 2:11 
I am getting into printing with VB.NET 2005 and want to implement the usual
capability that a user can select a selection of pages. I have a report
that is generated by my application that if the user wants all pages will
produce 3 pages. I want to offer the user the ability to select via the
print dialog that only pages 1 and 2 of it are printed or possibly pages 1
and 3 but not 2.

At the moment I can produce all three pages either as a print without a
preview, or via a print preview.

I have printing routine that handles the PrintPage event of the document
object used for this report.

My issue is how do I work out when the print handler routine is called which
of the pages is being printed at the time, ideally I want to have a select
case statement in my printing routine that says:

Select Case MyDoc.PrinterSettings.PrintRange.PageNumber
Case 1
'Printing commands for page 1
Case 2
'Printing commands for page 2
Case 2
'Printing commands for page 3
End Select

I feel like I am missing something and am probably making this more complicated than it is?

Any help, or links to web sources that describe the process would be
appreciated. I have 3 books on programming in VB.NET and none of them cover
the subject of how you deal with printing a selection of pages. I also
cannot find anything by googling that deals with this issue.

Siv


Siv
Graham Sivill
Martley, Near Worcester. UK.
Questionit might be simple but making me puzzled Pin
nauty31-Mar-06 1:17
nauty31-Mar-06 1:17 
AnswerRe: it might be simple but making me puzzled Pin
hbk72331-Mar-06 1:24
hbk72331-Mar-06 1:24 
AnswerRe: it might be simple but making me puzzled Pin
Mr Brown Shoes31-Mar-06 15:19
Mr Brown Shoes31-Mar-06 15:19 
QuestionRe: it might be simple but making me puzzled Pin
nauty2-Apr-06 20:49
nauty2-Apr-06 20:49 
QuestionReverse Name Assignment Pin
Shadow Sprite31-Mar-06 0:30
Shadow Sprite31-Mar-06 0:30 
AnswerRe: Reverse Name Assignment Pin
hbk72331-Mar-06 1:27
hbk72331-Mar-06 1:27 
AnswerRe: Reverse Name Assignment Pin
Dave Kreskowiak31-Mar-06 5:44
mveDave Kreskowiak31-Mar-06 5:44 
GeneralRe: Reverse Name Assignment Pin
Dan Neely31-Mar-06 6:01
Dan Neely31-Mar-06 6:01 
GeneralRe: Reverse Name Assignment Pin
Dave Kreskowiak31-Mar-06 6:59
mveDave Kreskowiak31-Mar-06 6:59 
GeneralRe: Reverse Name Assignment Pin
Shadow Sprite1-Apr-06 13:52
Shadow Sprite1-Apr-06 13:52 
QuestionHow to create a new certificate file using .net? Pin
superSYNC30-Mar-06 17:17
superSYNC30-Mar-06 17:17 
QuestionEnterprise Library, Data Access Application Block (DAAB), Best Practicises Question Pin
Mr Brown Shoes30-Mar-06 14:05
Mr Brown Shoes30-Mar-06 14:05 
AnswerRe: Enterprise Library, Data Access Application Block (DAAB), Best Practicises Question Pin
AhClem31-Mar-06 9:49
AhClem31-Mar-06 9:49 
QuestionRe: Enterprise Library, Data Access Application Block (DAAB), Best Practicises Question Pin
Mr Brown Shoes31-Mar-06 14:52
Mr Brown Shoes31-Mar-06 14:52 
AnswerRe: Enterprise Library, Data Access Application Block (DAAB), Best Practicises Question Pin
AhClem1-Apr-06 5:35
AhClem1-Apr-06 5:35 
QuestionRe: Enterprise Library, Data Access Application Block (DAAB), Best Practicises Question Pin
Mr Brown Shoes2-Apr-06 14:25
Mr Brown Shoes2-Apr-06 14:25 
AnswerRe: Enterprise Library, Data Access Application Block (DAAB), Best Practicises Question Pin
AhClem2-Apr-06 19:36
AhClem2-Apr-06 19:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.