Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.printing,microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Printer PaperSize returned as a String - How

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.
  #2   Report Post  
Posted to microsoft.public.excel.printing,microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Printer PaperSize returned as a String - How

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:

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.
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
function to convert Printer share name to ActivePrinter string Matt Williamson Excel Programming 1 March 31st 07 03:11 AM
papersize Gene Mills Excel Programming 1 March 6th 06 06:31 PM
changing printer.papersize=vbPRPSLetter areddy[_28_] Excel Programming 2 December 20th 05 07:19 AM
PageSetup.PaperSize Sandy Excel Programming 1 March 18th 05 06:20 PM
Execute a command line app but i want a string returned. dei Excel Programming 0 October 23rd 03 08:18 AM


All times are GMT +1. The time now is 03:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"