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

Printer PaperSize returned as a String - How

2 views
Skip to first unread message

Dennis Macdonald

unread,
Apr 29, 2010, 11:57:39 PM4/29/10
to
I have an API that returns the papersize as a number but how do I get
the string version (ie 9 = "A4").

This is OK when the parpersize returned is one of the papersize
contants, I can map it, but when it is not, how do I get the string
version.

That is - in Excel it shows a pulldown of all the page sizes available
in text form - where can I get a similar list wityh an API.

I hope this makes sense.

Thanks,
Dennis.

Rich Locus

unread,
Apr 30, 2010, 1:01:01 AM4/30/10
to
Dennis:

Your question is a little vague.... what API? One you wrote, part of
another system, a Microsoft Object? Regardless, can you find out every
number returned from the API? If so, have two arrays, one with the number
value and the other with the text version. So, if the API returns a number,
search the array for that number, and then use the corresponding text version
in the second array.

I may be way off base from your question, but if you refine it, perhaps I
could get closer to your answer.
--
Rich Locus
Logicwurks, LLC


"Dennis Macdonald" wrote:

> .
>

0 new messages