Web Development

General discussion



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.

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 = _
If PrintDialog1.ShowDialog() = DialogResult.OK Then _
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

Related Discussions

Related Forums