General discussion

Locked

PrinterSettings.Collate

By Soundbomber ·
In VB.Net I have a print dialog box that just doesnt seem to recognise when the collate box has been checked. I am querying the PrintDialog.PrinterSettings.Collate property but always get a value of false, regardless of the check state of the box.

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by msathappan In reply to PrinterSettings.Collate

You should set the collate property in the PrintDocument object as in the below code.
It is a read only property in the PrintDialog PrinterSettings class.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
PrintDocument1.PrinterSettings.Collate = True
PrintDocument1.PrinterSettings.Copies = 2
PrintDialog1.PrinterSettings = _
PrintDocument1.DefaultPageSettings.PrinterSettings
If PrintDialog1.ShowDialog() = DialogResult.OK Then _
PrintDocument1.Print()
End Sub

Collapse -

by Soundbomber In reply to

Poster rated this answer.

Collapse -

by Soundbomber In reply to PrinterSettings.Collate

I dont want to set the collate status at design time, i want to query it at run time. Regardless of the user checking or unchecking the box the queried result is always the same - false. Think I've narrowed it down to being a problem with certain HP printers shared over a network. Thanks anyway.

Collapse -

by Soundbomber In reply to PrinterSettings.Collate

This question was closed by the author

Back to Web Development Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums