27
Fri, Dec
0 New Articles

Make PC5250 Printing Easier with CA/400's Express Client

Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

Are you using PC5250 Graphical Device Interface (GDI) printers to print AS/400 output to a locally attached PC printer? Do you have trouble getting the output to position correctly on the page? Do you want to print 198 characters on one line without running off the page? If you answered yes to any of these questions, then the new AS/400 Client Access Express for Windows (Express client) product might present some interesting possibilities that you can take advantage of today.

In previous articles, I discussed the three different ways that printer emulation can be set up: Host Print Transforms (HPTs), Printer Definition Tables (PDTs), and GDIs. (See “The Basics of PC5250 Printer Emulation,” Midrange Computing, February 1999, for more information.) In this article, however, I’ll look at some Express client enhancements that make PC5250 GDI printing easier. (Remember, the GDI method is just asking PC5250 to use the Windows print drivers.) I’ll look at how Express client makes it easier to work with page orientation parameters, printer margins, form settings, and a few other tricks you may not realize are in the new Express client. You’ll see that Express client makes PC5250 GDI printing easier, which might encourage you to start experimenting with Express client for your printer emulation sessions.

 

Notice Anything Different?

 

The biggest Express client PC5250 change comes after you have configured a printer emulation session. The Printer Control option under the File pull-down menu has been replaced for non-DBCS PC5250 sessions with a Page Setup option. The Page Setup panel (Figure 1) now has three tabs on it that allow you to enter specific printer settings for your GDI emulated printers: Orientation, Form Settings, and Advanced Options.

 

Orienting Your Output

 

Clicking on the Orientation tab displays a panel that controls the scaling and page orientation settings of your printed output.

The key to controlling page orientation is in whether you check the box labeled Use automatic page orientation. If this box is not checked, then your PC5250 output will be oriented according to the following specifications:

• Computer output reduction means output is always reduced and printed in landscape mode. (This option will allow you to print 198 columns on 8.5 x 11 inch paper.)


• Portrait means output is always printed in portrait mode. (If you also choose the Use best fit scaling check box, these two options together would allow you to print 132 columns on 8.5 x 11 inch paper.)

• Landscape means output is always printed in landscape mode. If the Use automatic page orientation box is checked, then the output will be printed according to the table shown in Figure 2. (Width and length are based on the PAGESIZE parameter in your AS/400 Printer File.) In simple terms, the table says if the output can fit on the paper in Portrait or Landscape mode without reduction, PC5250 will print it that way. Otherwise, the output will be reduced and printed in Landscape mode.

 

Setting Margins with Express Client

 

The Margins section of the Orientation panel is only valid if the Use best fit scaling box is checked. The bestfit option was previously specified using the BestFit= parameter in the Workstation Profile (.WS) or configurations settings file (PCSWIN.INI), but with Express client it has been integrated directly into PC5250. The use of bestfit in Express client now allows you to set the top and left margins of the pages. The bottom and right margins are then set to have the same values as the top and left margins that you enter here. In addition, you can set the margins in inches or centimeters by clicking on the drop-down box and selecting the appropriate measurement.

The margin values you enter should represent the distance from the paper’s edge, but most print drivers enforce a nonprintable border (area). The default represents the emulator’s default margins. You can change these values as long as your input value is not less than the print driver’s enforced margin. If you go below the enforced margin, the print driver’s value is automatically substituted for your entered value. On most printers, you can find your printer’s nonprintable border (area) on the Properties page of the selected printer. (Click on the Paper tab.) You can view your printer’s properties through the Printers folder of your Windows Control Panel. (Right-click on the target Printer and select Properties off the pop-up menu. Depending on the driver, you may have to search through the tabs on your printer’s Properties screen to find the nonprintable border. The nonprintable border settings for an IBM AFP 3812 printer are shown in Figure 3. You can also reach your printer’s Properties panel from the Printer Setup option of the PC5250 File pull-down menu.

You can set your PC5250 top margin as small as 0.22 inches and the left margin as small as 0.26 inches. (These measurements are based on input from the Windows print driver.) It is never a good idea to set the margins to exactly the same as your enforced margins (in this example, 0.22 and 0.26 inches) as this setting might result in some output not being printed.

 

Form Settings

 

Clicking on the Form Settings tab on the Page Setup panel gives you the Form Settings panel (Figure 4). This panel allows you to control which form types will be selected for the printer’s drawers one and two and the envelope hopper. OS/400 allows you to specify which type of paper can be used. For example, you can say that a drawer contains standard paper, which usually means 8.5 x 11 inch paper, or that it contains A4 (8 x 11.5 inch paper). This function is only valid for Windows NT PCs when the printer and

Windows print driver supports the change-source function. If the printer does not support this function, these drop-down options will not contain any form for you to select.

 

Advanced Options

 

Clicking on the Advanced Options tab gives you the Advanced Options panel (Figure 5). This panel gives you control over all of the following print control attributes:

• PC Code Page—This field allows you to specify the code page to be used for printing. This specification is important if the code pages being used on the AS/400 differ from the code page of your PC.

• No CR between fields—This option can help improve performance for impact printers. Carriage returns (CRs) will cause the print head to return to its leftmost position


before printing the next field. If the field is on the same line, the result is unnecessary movement of the print head, which reduces performance. By checking this box, you stop that movement.

• Print bold as normal—This option is often referred to as draft mode; it prints bold characters in normal fonts instead of bold fonts, so you can save your ink or ribbon when printing drafts.

• Display print status dialog—This option controls whether the (small) Print Status window is displayed. Most people will want to keep this option checked. The Print Status window allows you to do all operations (such as start, stop, and cancel the current job) from the PC instead of from the AS/400. The only reason you might want to consider changing this option is if you are in a print server environment (i.e., you have a PC dedicated to printer emulation as an area printer) and you only want your AS/400 system operators to have control over starting and stopping the printer. Deselecting this option will prevent anyone at the PC from controlling the printer emulation session from the PC.

• Use raster fonts—This option tells PC5250 to use the bitmap fonts instead of system fonts, which are scaleable fonts. Raster fonts are fixed fonts, which makes for faster printing because the print driver doesn’t need to calculate how to format the printout.

 

A Few More PC5250 Printer Tricks

 

You can select the font to be used for the output file at the printer emulation session if you enter the FONT(*DEVD) parameter on your AS/400 Spool File specifications. This option allows you to then specify the font to be used for your printouts on the PC5250 Printer Emulation Setup panel (Figure 6) by clicking on the Font for AS/400 print file drop- down box and selecting the font you want to use. This specification gives the user a viable way to control (select) the font to be used on one specific session without changing/overriding the AS/400 printer file.

In a previous article (“Even More PC5250 Functions You Never Knew Existed, AS/400 Network Expert, March/April 1999), I discussed how you could hide the PC5250 Printer emulation icon on the Windows task bar. The new Express client now allows you to say that you want to hide the PC5250 printer emulation session at the printer emulation session start up. This task can be done by adding /H as a parameter after the workstation profile:

c:Program FilesIBMClient Access Emulatorpcsws.exe c:Program
FilesIBMClient AccessEmulatorPrivatewsname.ws /H

In this case, wsname is the name of the printer workstation profile of the session to be started.

Be careful when using this option. Once you have closed any other emulation sessions, the only way you will be able to end this hidden session is to end the session via the Windows task control menu.

 

Better Printing Through Graphical Improvements

 

Printer emulation with CA/400 has come a long way in the last two years. Every year, new printer definition tables are added and every release of OS/400 supports additional HPT workstation customization objects. However, in the Express client, the biggest improvements have come in the usability of the GDI (e.g., your Windows print drivers). You now have more control than ever over how your output is printed. You can specify your own print margins, obtain better control over page orientation and output reduction, and now you can control other important aspects of your printer (such as draft mode, performance, rastor fonts) via a graphical interface. The Client Access development team continues to improve PC5250 printer emulation and would like to hear from you on any additional requirements you have. You can contact the team through the CA/400 home page at www.as400.ibm.com/clientaccess/ cafeedbk.htm


 

Related Reading

 

“Even More PC5250 Functions You Never Knew Existed,” AS/400 Network Expert, March/April 1999

“The Basics of PC5250 Printer Emulation,” Midrange Computing, February 1999. (Also posted in the March/April 1999 AS/400 Network Expert Web Edition: www.midrangecomputing. com/ane/99/03)

“Fill the Gaps with Workstation Customization Objects,” Midrange Computing, February 1999. (Also posted in the March/April 1999 AS/400 Network Expert Web Edition: www.midrangecomputing.com/ane/99/03)

“PC5250 Functions You Never Knew Existed,” AS/400 Network Expert, January/February 1999


 

Make_PC5250_Printing_Easier_with_CA-_400_s_Express_Client05-00.jpg 600x736

 

Figure 1: The Express client Page Setup panel contains three tabs that allow you to enter specific printer setting for your PC5250 emulated printers.


Figure 2: This table shows how output is printed with automatic page orientation.

Figure 2: This table shows how output is printed with automatic page orientation.


Width Length Result

<=8.5" <=11" Portrait CPI unchanged*

<=11" <=8.5" Landscape

CPI unchanged*

>11" any Landscape

CPI changed by 75% LPI changed by 70%

Any >11" Landscape

CPI changed by 75% LPI changed by 70%

>8.5" <=11" Landscape

CPI changed by 75% LPI changed by 70%

<=11" >8.5" Landscape

CPI changed by 75% LPI changed by 70%

* If the width is > than the depth, output will be in landscape.

 

Make_PC5250_Printing_Easier_with_CA-_400_s_Express_Client07-00.jpg 600x723

 

Figure 3: With some printers, you can view the unprintable area values from the printer Properties panel.


 

Make_PC5250_Printing_Easier_with_CA-_400_s_Express_Client08-00.jpg 600x729

 

Figure 4: The Form Settings tab allows you to control which form types will be selected for the printer’s drawers one and two and the envelope hopper.


 

Make_PC5250_Printing_Easier_with_CA-_400_s_Express_Client09-00.jpg 600x730

 

Figure 5: The Advanced Options tab gives you control over some additional print control attributes.


 

Make_PC5250_Printing_Easier_with_CA-_400_s_Express_Client10-00.jpg 600x548

 

Figure 6: If you specify the FONT(*DEVD) parameter on your AS/400 Printer File specifications, you can then specify the font to be used for your printouts on the PC5250 Printer Emulation Setup panel.


BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: