Niakwa, Inc.

     ONLB V3 #14

Home Site Map Search Contact Us What's News NPL Support Consulting

What's News
NPL Products
NPL Support
NPL Downloads
System Integration

On-Line News
ONLB V3 #10
ONLB V3 #11
ONLB V3 #12
ONLB V3 #13
ONLB V3 #14
ONLB V3 #15
ONLB V3 #16
ONLB V3 #17
ONLB V3 #18
ONLB V3 #19
ONLB V3 #2
ONLB V3 #20
ONLB V3 #21
ONLB V3 #22
ONLB V3 #23
ONLB V3 #24
ONLB V3 #25
ONLB V3 #26
ONLB V3 #3
ONLB V3 #4
ONLB V3 #5
ONLB V3 #6
ONLB V3 #7
ONLB V3 #8
ONLB V3 #9

swiggle_small.gif (991 bytes)

Niakwa On-Line News Brief

Back Up Next

Volume 3 No. 14 Community News & Information July 26, 1999

In this Issue:


It has come to our attention that the latest Niakwa News requires a correction on page 10 in the Tech Bytes article. The corrected version follows.

In the past, some developers hesitated to use the Windows RunTime because their application was sending printer control codes to the printer. The problem was that the Windows Print Manager stripped out the control codes and the developer had no control over the printing process. That changed with the release of Revision 4.22 which introduced the "XPA=Y" option

The "XPA=Y" clause permits printer control codes to be "passed through" the printer driver to the printer instead of being stripped out as in the past. Most printer drivers support the "pass through"
option, but not all.

The correct syntax to enable "Pass through control codes" is

$DEVICE(/XXX)=">(printer driver address) XPA=Y"

This of course must be entered in the device table.

Here's a handy trick to find the correct way to address the Windows printer driver.

1. Make sure the printer is configured in Windows 95, 98 or NT.
2. Write a small program

    10 $DEVICE(/215)=">(?) SET=Y"
    20 SELECT PRINT 215
    30 PRINT "HELLO"

3. Run this program using RTIWIN. A Windows printer selection box will pop up and allow you to select a printer.
4. Select the printer you want to define and let it print. Don't exit the RunTime, but enter "LIST DT".
5. Make a careful note of the exact way device 215 is listed.
6. Enter that DEVICE definition into your program device table and substitute XPA=Y for SET=Y.

As mentioned earlier, MOST printer drivers support the "pass through"option. If a particular printer driver doesn't support the "pass through" option, you will get a P-48 error the first time you try to
print to that device. If that happens, you can configure Windows' "Generic text only" printer driver for that printer and use the "XPA=Y" option. After all, you are sending control codes to the printer anyway. If you get a double page feed at the end of the print job, change the "Paper" setting in the properties window of the Generic printer driver to "Continuous, No page break".

Here's a little tip for troubleshooting printer problems in the Windows runtime. Try setting the XPA=Y option, even if you're not sending control codes. It might help correct some line feed problems.


blank.gif (841 bytes)

Back Home Up Next

Niakwa, Basic-2C and NPL are trademarks of Niakwa, Inc. All other products mentioned are registered trademarks or trademarks of their respective companies.

Questions or problems regarding this web site should be directed to
Copyright 1996-2007 Niakwa, Inc. All rights reserved.
Last updated: Monday July 21, 2008.