R: RE: Reducing Paper Size in a Printer minidriver

Ashwin,

Thanks a lot for Your support.

But, probably, I didn’t explained well my type of problem, or
I didn’t understand your explanation.
OK, one point is clear; if i have a printer with a paper size of 140mm
is obvious that i need to prepare a Custom Paper size.
But when i go on any word processors or editors like Word for example,
i see my custom paper size; instead, our customer wants works with a normal
A4 dimensions even if the printer has other paper dimensions.
Only when post the written page or a web page on printer for print, asks to
reduce all content of the page into 140mm dimensions. I don’t know if my
explanation is clear, but this is exactly what i want to do, and i can’t
see how to do this from unitool and mdt instructions. So, i thought to use
FilterGraphics methods, even because my knowledge of Unitool and Mdt is not
very high.

TIA for more in depth response.

Best Regards,

  • Giandomenico

-----Messaggio originale-----
Da: Ashwin Needamangala [mailto:xxxxx@microsoft.com]
Inviato: sabato 14 settembre 2002 0.28
A: NT Developers Interest List
Oggetto: [ntdev] RE: Reducing Paper Size in a Printer minidriver

You can define your custom paper size in the GPD file and use that
instead of using a pre-defined paper size like A4. I don’t see the
reason for having to use CBFilterGraphics or
IPrintOemUni::FilterGraphics for something that can be done in a lot
easier way.

Plese refer to the section on specifying vendor defined papersizes as
well as user defined papersizes. You can find this under DDK->Display
and Print Devices->Design Guide->Microsoft Universal Printer
Driver->Specifying Paper sizes.

  • Ashwin

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: Vassia Giandomenico [mailto:xxxxx@tecnostsistemi.com]
Sent: Friday, September 13, 2002 7:56 AM
To: NT Developers Interest List
Subject: [ntdev] Reducing Paper Size in a Printer minidriver

Hi everyone,
In the past I developed a printer minidriver for our POS printers,
using UniDrv and UniTool for Win98SE/Me and Mdt Tool for W2K. Now, our
customer asks to us a new feature for these drivers.
This feature concern on the capability to reduce the Page size from
A4(210x297mm) to a custom dimension (140x198mm).
In others words, i have in input an A4 page and all contents must be
printed on custom dimension written before. (140mm is the width of our
printer’ receipt).
Doesn’t exist firmware printer’ commands for this feature, then I think
implement it via software into minidriver. Since the print-job is in
BIM mode, I thought to use “CBFilterGraphics”, and equivalent under W2K
but I’m not sure if this way is the best way.
What do You think ?
And if so, do You have some suggestion where i can find sample code for
reduce? Any help will be very appreciate.
TIA.
Best Regards. Giandomenico


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@tecnostsistemi.com
To unsubscribe send a blank email to %%email.unsub%%