Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

paperSize vs EnumPrinterForms

12 views
Skip to first unread message

Jack E. Wasserstein, DDS, Inc.

unread,
Oct 22, 2004, 2:16:58 AM10/22/04
to corel.wpoffice.paradox-dev

If you do an enumrtlconstants and look at the printerSizes constants they
range from approximately 1-68. How ever if you poll your installed printers
with EnumPrinterForms there are constants in the 200's+ Obviously using
Paradox constants will be hit and miss. This begs two questions:

1) Is there an Enum that will give the descriptive constants and values from
the selected printer instead of just the value?
2) Will setting the page length and width, by passing PaperSize be a better
approach given the above?

Ultimately I will use SetPrinterOptions to give the data to the printer.

Anyone have any experience with this?

Thanks,

Jack

Using P10

Bertil Isberg

unread,
Oct 22, 2004, 10:28:29 AM10/22/04
to corel.wpoffice.paradox-dev

Jack

Take a look at
http://www.thedbcommunity.com/code/print1.htm

Rick Kelly has written a series of articles on controlling the printer
using Windows API.


--
Bertil Isberg
CTECH
FAQ newsgroup: corel.wpoffice.paradox-faq
Paradox Buglist: http://w1.826.comhem.se/~u82608896/

remove spamfilter (reversed) to reply


Anders Jonsson

unread,
Oct 22, 2004, 3:59:52 PM10/22/04
to corel.wpoffice.paradox-dev

> 1) Is there an Enum that will give the descriptive constants and values
> from the selected printer instead of just the value?

Not an Enum that I know of but I guess it should be possible to find the
right constant by setting it manually as the default paper size and then use
PrinterGetOpions().

> 2) Will setting the page length and width, by passing PaperSize be a
> better approach given the above?

I think only you can answer that question bu testing yourself. When it comes
to printer issues it is often so many things that interact that testing is
the only sure way.

>
> Ultimately I will use SetPrinterOptions to give the data to the printer.
>

Why? As you are running P10 I think you should give the new print syntax
with the reportprintinfo in the form of a dynamic array a chance. Maybe it
will do what you want.


Anders

Jack E. Wasserstein, DDS, Inc.

unread,
Oct 22, 2004, 11:50:18 PM10/22/04
to corel.wpoffice.paradox-dev

PrinterGetOptions also returns the value of the constant but it was a good
idea anyway.

thanks

"Anders Jonsson" <g...@takethisawaybredband.net> wrote in message
news:417960ad$1_2@cnews...

Egbert Babst

unread,
Oct 24, 2004, 9:52:24 AM10/24/04
to corel.wpoffice.paradox-dev

Jack,
I'm late on the party :-).

> 1) Is there an Enum that will give the descriptive constants and values
> from the selected printer instead of just the value?

Try "constantValueToName ( const groupName String, const value AnyType, var
constName String ) Logical"
and look in the Reference Manual for groupName-constants (PrinterSize
constants included).

Egbert, 15:51 in Germany

0 new messages