Re: vbPrnDlg: Collate display bug.



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

.



Relevant Pages

  • RE: Visio 2003 SP2 Printing Bug
    ... happeing using Lexmark printers. ... unfortunately there is not a fix for this in Visio at this time. ... I take it by unpatched you're using the Visio 2003 release to manufacturing ... I'm not sure where you're turning collate off (Print dialog box or Printer ...
    (microsoft.public.visio.general)
  • Re: vbPrnDlg: Collate display bug.
    ... Print ALL pages WITH collate. ... Actually the first two scenarios produce the correct result. ... returns zero for that flag. ... I've tried it on both printers I have installed, ...
    (comp.lang.basic.visual.misc)
  • Re: Pub2000 wont collate
    ... There are HP printers that will not collate with Publisher. ... Have you tried the HP support? ...
    (microsoft.public.publisher)