Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using paper trays
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01165795
Message ID:
01165853
Views:
18
If you want to do it that way, yes. You should still be able to do it the way you are as long as you ensure:

1. The other paper trays are disabled in windows for the printer
2. There is nothing specifying a papertray or default source in the frx record objtype=53


>Ok, I saw the "Press to select a paper tray or Double-Click on any item to select it" text and was thinking you were presenting a way to have the user select the tray. But what you're saying is you use the DeviceCapabilities API call to determine what tray the device is defaulting to and then you load that in the EXPR field. As I mentioned, PRTINFO is not returning that correctly. This is kludgey (no insult intended, it's not your fault VFP won't respect the tray setting), but I guess it could work. The problem is that I'd have to alter a good bit of very bad code (this is a product based on the horrific SBT/AccPac code). Thanks for the reply.
>
>
>>What you are doing I have done in the past as well. It usually works and VFP does respect it as long as:
>>
>>1. The other paper trays are disabled in windows for the printer definition
>>2. There is nothing specifying a papertray or default source in the frx record objtype=53
>>
>>By the way, I posted the code only so you could see how to determine the id for the papertray and then put that id in the frx record. The user would never see that code or be prompted. You would do it for them.
>>
>>>Thanks, Tracy. That's a heck of a lot of code, but one thing I note is that it seems to be based on the assumption of asking a user what tray to print to. The client does not want to do that. They have set up different printers and they are associated with different trays and other Windows apps seem to respect this, but VFP is not. They don't want the user having to select a tray each time and I can't blame them. I'm not sure why VFP is not respecting this setup, but it's not.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform