Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FAQ 21202 Add/Delete Custom Printer Forms in W2K (Sergey
Message
 
 
To
20/05/2004 14:48:26
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00905754
Message ID:
00905757
Views:
15
This message has been marked as the solution to the initial question of the thread.
Tracy,

It should be the width and height of the printer form in inches.
IF NOT ooo.AddForm("DBMEMO", 8.5,5.5, lcPrinter)
>I want to create a custom paper size called DBMEMO using the code below. The form should be 8.5 x 5.5 (an exact half-sheet). What I do not know is, in the example below, what would the values be in place of 5 and 7? And, how do I figure out what they should be? (I'm sure it's easy to figure out and I am just brain-dead once again today) Oh yeah, update, I am actually using WinXP SP1 but this should work in both Win2K and WinXp. :0)
>
>
>ooo = NEWOBJECT("AddPrinterForm")
>IF NOT ooo.AddForm("DBMEMO", 5,7, lcPrinter)
>
>
>Here is the full code I am using for testing purposes:
...
>	PROCEDURE AddForm(tcFormName, tnWidth, tnHeight, tcPrinterName)
...
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform