Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Printer Properties Beta Testers Needed
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01050441
Message ID:
01052244
Views:
9
>Tracy,
>
>I've noted the section below from the code you posted earlier.
>
>QQbinBfr = REPLICATE(CHR(0), 16384)
>QQbinBf2 = REPLICATE(CHR(0), 1024)
>QQnCount = DeviceCapabilities(QQprintername, pPort, DC_BINNAMES, @QQbinBfr, 0)
>QQnCnt2 = DeviceCapabilities(QQprintername, pPort, DC_BINS, @QQbinBf2, 0)
>

>In this code, you are also using strings lengths of 1024 and 16384 for the output buffer size you're sending to DeviceCapabilities. Do you have any idea where these numbers came from? That's the missing piece to the puzzle that I need to make my code more useful.
>

You can ignore this, Tracy. I think I've got it figured out. Based on the output buffer sizes specified in this document: http://webster.cs.ucr.edu/Page_win32/GDIRef.pdf I know what to use. I've done some initial testing and it seems to work.
Previous
Reply
Map
View

Click here to load this message in the networking platform