Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More Problems with EnumForms
Message
 
To
02/08/2001 14:02:30
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00538518
Message ID:
00539132
Views:
12
>George,
>I am getting lost in this thing. Let me ask you, if all I want to do is set the printer to print a certain customer size form what do I need to do? I had thought ( naively as it turns out 5 days later) I could call eNumForms and then iterate throught the list of forms and set the printer to a special named form. I was shocked to discover that there are 122 predefined forms on my system and it takes far too long to go through them all. If I do SETFORM to my particular form size should it then use that form size for printing?
>
>Missing in all the discussion about printing in Win2000 is any mention of paper souces and the fact that each paper souce can have its own defined form size. How does one handle that?

Calvin,

I hope that you don't mind me saying this, but I don't think that this is something you want to try to do. There are a number of reasons on the OS level that make it tough. For example, what if someone is using Win9x/Me? This approach won't work.

Now I could go into a rather detailed explanation of why I wouldn't attempt this. I won't, unless you ask me to. Let's suffice it to say that, in the long run, this isn't something I'd attempt in any language (including C++).

I do have a suggestion. Why not simply create a printer, based on the default, with a different name? The setup dialog will allow the user to select the appropriate paper and or bin. This way, provided the name was consistent, you could simply use SET PRINTER TO < name > and be done with it (and not have to support all the API code).
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform