WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Printer Controller

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

FileCopy and Landscape Mode Attribute

Keywords: 

Question:

I have the following script, where I'm setting the printer to Landscape mode, and then sending the file to the printer.

I see that the Landscape setting is taking effect in Windows, but the file is not printing still printing in Portrait mode. Any ideas?

AddExtender("WWPRT34I.DLL")

pSetPrtAttrib("Orientation", 2)  ; set to landscape mode
FileCopy("c:\temp\zinfile.txt", "\\TESTTECH\Laser4", @false)

Answer:

FileCopy bypasses the Windows settings and is routed raw directly to a location - Windows is not involved.

You will need to look into your printer documentation (PCL or whatever language your printer is) to determine the escape sequences necessary. So the printer is using whatever internal default settings it has. (You can check what they are by going through the printer menu directly at the printer.)

You can then either create a file with these escape sequences and send them to the printer first, or put the escape sequences at the beginning of your file.


Article ID:   W14192
Filename:   FileCopy and Landscape Mode Attribute.txt
File Created: 2017:07:28:12:58:37
Last Updated: 2001:03:01:14:38:32