Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report to raw print
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01275608
Message ID:
01275810
Views:
13
HI

Unfortunately with multi-part forms you need to use a dot matrix printer. Windows is very slow printing forms this way and does not handle non-standard pages sizes well. So the best solution is to send the text and printer commands directly to the printer and by-pass the Windows' Print Driver. So there will always be a need to send raw data to the printer.

Simon


>>I am trying to send my report to a raw printer
>>
>>is ther a better idea than my code below ?
>>
>>
>>**************************************************
>> report form PEDIDO TO FILE "PEDIDO1.TXT" ASCII
>>
>> DECLARE INTEGER CopyFile IN KERNEL32.DLL ;
>> STRING @SourceFileName, ;
>> STRING @DestFileName, ;
>> INTEGER bFailIfExists
>>IF CopyFile('PEDIDO1.TXT', 'LPT1',0) # 0
>> * It was copied
>>ELSE
>> * it wasn't
>>ENDIF
>>*************************************************
>
>If you use proportional fonts in that report it will be total mess when it prints. Also why not just use normal reports and tell your client to buy a proper printer?
Simon White
dCipher Computing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform