Highlighted
Absent Member.
Absent Member.
353 views

[archive] Thin Client Spooled File Printing

[Migrated content. Thread originally posted on 31 May 2007]

Using Thin Client (Version 7.2.1) and running on a Windows 2K3 R2 Server.
We trying to print a spooled file to either an attached printer or any network printer. So far we have had no luck in doing so. We have tried using the "COMMAND.COM /C TYPE [printfile]" command, but loose our Page Break controls when doing so.
Any suggestions of how we can print a spooled file to a printer and keep our form control?
0 Likes
5 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] Thin Client Spooled File Printing

To print locally with Thin Client, you have to print using the Windows spooler. This can be achieved by setting the name (or alias) of the print filename to:
-P SPOOLER
or
-P SPOOLER-DIRECT
or
-Q printername and directives
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Thin Client Spooled File Printing

Can you tell me a statement to use inside a program in thin-client to send a file from the drive to the printer. We use the following statement inside programs running in dos and it works but it will not work in thin-client.

call "system" using "command.com /c type F:\tag\pf\waldenm >lpt5".

We are using version 7.2.1 on a Windows 2k3 R2 Server.

Thanks
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Thin Client Spooled File Printing

I don't remember if we have implemented the thin prefix for c$system, but try to add the prefix: @[DISPLAY]:
Like.

CALL "@[DISPLAY]:SYSTEM" USING ...
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Thin Client Spooled File Printing

actually C$SYSTEM doesn't support @[DISPLAY] syntax.
in order to execute the print of a local file (a file on the client side) to the local port you can do this

call "c$system" using "copy /b f:\tag\pf\waldenm lpt5" CSYS-DESKTOP

copy /b should keep also the Page Break characters.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Thin Client Spooled File Printing

Thanks Luca!
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.