AnsweredAssumed Answered

Selecting Printer to print from?

Question asked by VRFuser on Mar 5, 1998
Craig,

WOULDN"T IT BE NICE IF WE HAD A DIALOG BOX SIMILAIR TO THE FILE
SELECTION DIALOG BOX, TO DO THIS PRINTER SELECTION FOR US INSTEAD OF
THIS TEDIOUS SEARCHING AROUND DEEP INSIDE WINDOWS?

Selecting a printer is the same I would like, and I do not believe we
are the only two in the world.
I would already be happy when I was able to get the printer selection
dialogue box.
I posed the same question on the reflector about two years ago, with
no response.

Since I read your question I took a more close look at it, this is
where I am now:

- The printer selection should be addressable via a DLL anywhere in
Windows. And yes, it is: under NT4 it can be found in the
COMDLG32.DLL in the SYSTEM32 directory. This seems to be the one.
- Communication with this DLL however is done via a pointer to a
structure. It should be called like:
    BOOL PrintDlg (LPPRINTDLG lppd // address of structure with
                                      initialisation data);
But HPVEE does NOT support structures.

- So required here seems to be an intermediate ('homemade'?) DLL
which translates this structure into a HPVEE accessible form
(Record?). See also the MXD Exchange newsletter of januari this year.

WOULDN"T IT BE NICE IF WE HAD A DIALOG BOX SIMILAIR TO THE FILE
SELECTION DIALOG BOX, TO DO THIS PRINTER SELECTION FOR US INSTEAD OF
THIS TEDIOUS SEARCHING AROUND DEEP INSIDE WINDOWS?

> Hi All,
>
> Does anyone know how to select which printer - local or network - 
> to print from with a To Printer object in Windows 95?
>
> I would like to be able to select a local label printer to print
> Fault labels for units failing test but keep the Windows default
> printer set to the network Laser.
With kind regards,
  Johannes Mulder           
  Philips Electron Optics            tel +31 40 2766867
  Building AAE-room 21               fax +31 40 2766820
  P.O.B. 218                  
  5600 MD ACHT, the Netherlands

Outcomes