Re: vbPrnDlg: Collate display bug.
- From: michael.f.larson@xxxxxxxxx
- Date: 29 Oct 2005 08:05:02 -0700
Yes, I just need to be able to set intial state (and then return the
final state) which we pass to the (separate) code for the printers.
We had been using a custom form and the vb.printers collection in a
genCombo box, but since we deploy over terminal server to many clients,
everyone was seeing (and able to print to) everyone else's printers,
which was very bad (different clietns).
To avoid that, we wanted to use standard microsoft print dialog so that
local context is inherently understood, but commondialog doesn't return
printer device name.
vbPrnDlg, is the COM version of the API, so it returns (and allows the
setting) of several variables that CommonDialog does not.
Once we set/get the values, we still pass it to our original code.
I had run a lot of tests on this and passed a long as the printer flag,
so I could loop through and see the effect of different values on the
dialog.
what I discovered was that ANY time there is a from/to/min/max setting
(needed for printing a subset of pages), then the dialog AUTOmatically
adds a checked collate box.
For the "ALL" settings, I was able to generate collate (or not) with
the following code, setting some additional flags for collate..
'all pages, collate
printDlg.Flags = VBPrinterConstants.cdlPDAllPages _
Or VBPrinterConstants.cdlPDNoPageNums _
Or VBPrinterConstants.cdlPDNoSelection _
Or VBPrinterConstants.cdlPDCollate
'all pages, do not collate
printDlg.Flags = VBPrinterConstants.cdlPDAllPages _
Or VBPrinterConstants.cdlPDNoSelection
Thanks.
Regards,
- M
.
- Follow-Ups:
- Re: vbPrnDlg: Collate display bug.
- From: michael . f . larson
- Re: vbPrnDlg: Collate display bug.
- References:
- vbPrnDlg: Collate display bug.
- From: michael . f . larson
- Re: vbPrnDlg: Collate display bug.
- From: Mike Williams
- vbPrnDlg: Collate display bug.
- Prev by Date: Re: String or Numeric Variable?
- Next by Date: Re: vbPrnDlg: Collate display bug.
- Previous by thread: Re: vbPrnDlg: Collate display bug.
- Next by thread: Re: vbPrnDlg: Collate display bug.
- Index(es):
Relevant Pages
|