Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending to printer
Message
From
08/10/2009 13:15:50
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01428050
Message ID:
01428300
Views:
31
You must do it physically on the printer. If that's not an option, please tell me what's the purpose of this code. I mean this is Windows, why do you have to do it the old DOS way?

>How is that done, we have a shared network printer?
>
>>I'm pretty sure that you must change the printer's default font.
>>
>>>They do output diff length! Printer is Laserjet 9500 mfp
>>>here's my test code
>>>set prin to e:\top.
>>>set prin on
>>>SET PRINT FONT 'Courier new', 10
>>>
>>>? repl("i", 20)
>>>? repl("m", 20)
>>>set prin to
>>>set prin off
>>>
>>>modi file e:\top. * looks fine here
>>>type e:\top to prin * misaligned here
>>>
>>>
>>>
>>>
>>>
>>>
>>>>Hmmmm.... let's go back to basics. I have a feeling you have font issues.
>>>>
>>>>Run this:
>>>>* Add here your commands to set output to printer.
>>>>
>>>>? repl("i", 20)
>>>>? repl("m", 20)
>>>>
>>>>* Now add the commands to close the printer and flush it, so it prints...
>>>>If the above code produces two lines of different length, your printer's using a proportional font, like Naomi said.
>>>>
>>>>BTW, what's the printer's brand and model?
>>>>
>>>>Alex
>>>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform