<div>Dear Joe, Glenn, Jeff</div>
<div> </div>
<div>I got a user try to print a .txt file using the following command. </div>
<div>(The printer is located in another town. I have no physical access to it.)</div>
<div> </div>
<div> </div>
<div>PRINT /D:\\MXP_NT\HPLJ4050N_TRAIN C:\rpt715.TXT</div>
<div> </div>
<div>He says when he printed, the print goes to A4 paper. (Note: I'm not using PCL here)</div>
<div>However when he opens the document in notepad and prints it is going to A3.</div>
<div>How can I direct the report to A3 (without using PCL).</div>
<div> </div>
<div>Thank you for your support.</div>
<div>Regards,</div>
<div>SYED<br><br> </div>
<div><span class="gmail_quote">On 12/6/05, <b class="gmail_sendername">Glenn Baxter</b> <<a href="mailto:Glenn@baxterit.com.au">Glenn@baxterit.com.au</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Syed,<br><br>1) Your initial request for A3 should simply be a matter of picking the<br>right stock tray; after setting landscape and an suitable font.
<br>2) Most {used guardedly} printers support PCL - I have used both Hp and<br>Toshiba.<br>3) Your method appears correct by way of insertion within Initial Heading<br>etc.<br>4) As pointed out by Jeff below; you MUST direct the report to disc; then
<br>use the Print command. Windows print subsystem WILL strip out any escape<br>sequences.<br>This may be your only problem.<br><br>I have tried the report Axiant; setting report device disc and the resulting<br>text file DOES contain the escape sequences etc.
<br>Point 4 is probably the issue.<br>Regards<br>Glenn Baxter<br>=======================<br>Baxter IT Solutions Pty Ltd<br>=======================<br><br>-----Original Message-----<br>From: Jeff Hoffman [mailto:<a href="mailto:wonicon@optusnet.com.au">
wonicon@optusnet.com.au</a>]<br>Sent: Tuesday, 6 December 2005 8:05 AM<br>To: <a href="mailto:powerh-l@lists.sowder.com">powerh-l@lists.sowder.com</a><br>Subject: Re: Printer Question - AXIANT 4GL - A3 Size Reports<br><br>
Syed<br><br>1) The only documentation I know is usually in the printer manual<br>2) If it is a HP laser it will have PCL, most other printers also support<br>PCL check the manual.<br>3) yes<br><br>Note: under windows you must print to a file and use the DOS print command
<br>to print the file, otherwise the PCL is lost. The really fun part is getting<br>the printer to work, its been mentioned before , I just do not have the<br>definition to hand.<br><br>Another technique you could use that would be more effective, is to setup
<br>standard PCL commands in text files, then use a bat file like the one below,<br>this way if you do not want to mix the fonts you do not have to change your<br>code<br><br>*********************<br>echo Printing %1 to %2 (%3)
<br>rem %1 = file to be printed, %2 = the printer , %3 = the header file<br>parameter @echo off set VPRINTFYL=%VPRPT%\PR%random% if "%3" == "LC" (set<br>VPRINTHDR=%vpdat%\vprint_LC.txt) else ^ if "%3" == "LN" (set
<br>VPRINTHDR=%vpdat%\vprint_L.txt) else ^ (set VPRINTHDR=%vpdat%\vprint_P.txt)<br>copy %VPRINTHDR% + %1 + %vpdat%\vprint_reset.txt %VPRINTFYL% print /d:%2<br>%VPRINTFYL% del %VPRINTFYL% set VPRINTFYL= set VPRINTHDR=<br>*********************
<br>This just uses 4 standard txt files, 1 each for Landscape , landscape<br>compressed , portrait & reset.<br>It just defines a work file, points to a header file depending upon the 3rd<br>parameter, then copies the header file, the print file & the reset file to
<br>the work file, then prints the work file.<br><br>Sorry I do not have the header files at hand I will try to get them, and<br>send the to you later. I created them by useing quiz to generate the initial<br>header, then copy this to a separate file.
<br><br>Jeff<br><br>At 11:44 PM 5/12/2005, you wrote:<br>>Thank you Jeff,<br>><br>>Sorry for this late mail. I'd been on vacation.<br>>Thank you for your detailed explanation and sample code.<br>>I have never used PCL before. That is why this many questions.
<br>><br>>May I please know,<br>>1. How I can get the documentation about using PCL in QUIZ and the<br>>commands I should use?<br>> I could not find any help in QUIZ documentation 2. How do I know<br>>if the laserjet printer supports PCL?
<br>>3. In your example, is the INITIAL HEADING command instructs the<br>>printer to print in the defined font?<br>><br>>I printed my test report with TWELVE-CPI and TEN-CPI. But there seems to<br>>be no difference.
<br>>What change can show me some visible change?<br>>I have changed definition ESCAPE to ESCAPE1 as it is a key word.<br>>RESET is also a keyword. But I didn't change it. I have listed the code<br>>I used to test. (in fact it is yours).
<br>><br>>I'll appreciate if you can help me in this.<br>><br>>;**********************************************<br>>SET REPORT DEVICE PRINTER NAME $UEV_PRINTER1<br>><br>>define esc_n int*2 = 27
<br>>define esc_c char*2 = characters(esc_n)<br>>DEFINE ESCAPE1 CHAR*1 = esc_c[1:1]<br>>DEFINE SIZE-A4 CHAR*8 = ESCAPE1+ "&l26A"<br>>DEFINE LANDSCAPE-MODE CHAR*8 = ESCAPE1+ "&l1O"
<br>>DEFINE LANDSCAPE-LPP CHAR*8 = ESCAPE1+"&l41P"<br>>DEFINE LANDSCAPE-LPI CHAR*8 = ESCAPE1+"&l6D"<br>>DEFINE PORTRAIT-MODE CHAR*8 = ESCAPE1+"&l0O"<br>>DEFINE PORTRAIT-LPP CHAR*8 = ESCAPE1+"&l85P"
<br>>DEFINE PORTRAIT-LPI CHAR*8 = ESCAPE1+"&l8D"<br>>DEFINE TWELVE-CPI CHAR*8 = ESCAPE1+"(s12H"<br>>DEFINE TEN-CPI CHAR*8 = ESCAPE1+"(s10H"<br>>DEFINE POINT-SIZE-10 CHAR*8 = ESCAPE1+"(s10V"
<br>>DEFINE NORMAL-PRINT CHAR*8 = ESCAPE1+"(s0B"<br>>DEFINE Compress CHAR*8 = ESCAPE1+"&k2S"<br>>DEFINE RESET CHAR*2 = ESCAPE1 + "E"<br>>;------------------------------------------------------------
<br>><br>>set rep nolim<br>>set rep dev pri<br>>set page len 85<br>>set page width 132<br>>SET PAGE NUMBER 1<br>><br>>INITIAL HEADING &<br>>TAB 001 LANDSCAPE-mode LANDSCAPE-lpp LANDSCAPE-lpi TEN-CPI size-a4 &
<br>>SKIP PAGE<br>><br>>REPORT &<br>>TAB 1 "HELLO THERE" &<br>>SKIP &<br>>TAB 1 "HELLO THERE" &<br>>SKIP &<br>>TAB 1 "HELLO THERE" &<br>>SKIP &
<br>>TAB 1 "HELLO THERE" &<br>>SKIP &<br>>TAB 1 "HELLO THERE" &<br>>SKIP &<br>>TAB 1 "HELLO THERE" &<br>>SKIP &<br>>TAB 1 "HELLO THERE" &
<br>>SKIP &<br>>TAB 1 "HELLO THERE" &<br>>SKIP &<br>>TAB 1 "HELLO THERE" &<br>>SKIP<br>><br>><br>>FINAL FOOTING &<br>> SKIP 3 TAB 28 "*** END OF REPORT ***" &
<br>> skip tab 1 reset<br>><br>><br>>BUILD Report4_PCL_TEST<br>>;**********************************************************************<br>>*****<br>>Best Regards,<br>>SYED.<br>><br>>
<br>>On 10/20/05, Jeff Hoffman<br>><<mailto:<a href="mailto:wonicon@optusnet.com.au">wonicon@optusnet.com.au</a>><a href="mailto:wonicon@optusnet.com.au">wonicon@optusnet.com.au</a>> wrote:<br>>Syed<br>
><br>>If the generic option works and the printer are in good condition, go for<br>it.<br>><br>>However I would start experimenting using laser printers as they are<br>>usually available all over the network (that is the users have their
<br>>own, no cost to your dept.). You could set up a default printer for<br>>each user at their specific location.<br>><br>>Also you can print in landscape mode at 16.6 chars per inch (small but<br>>legible, you would have to find out if your users if the size is
<br>>acceptable) this would give you over 182 character per line, at 12<br>>chars per inch you get over 132 chars per line.<br>>At 8 line per inch you can get over 48 lines per page landscape.<br>><br>>In this I am assuming that you laser printers support PCL.
<br>><br>>Something there doing where I work at the moment is convert the print<br>>files to PDL format (for use with acrobat reader) these can then be<br>>e-mailed or put onto the web for distribution, but I think this is over
<br>>kill, but worth looking into for the future.<br>><br>>The following is an indication of how to use PCL in quiz report.<br>><br>>Good luck<br>><br>>Jeff<br>><br>>***********************************************************************
<br>>*****************************************************<br>><br>>;------------------------------------------------------------<br>>define esc_n int*2 = 27<br>>define esc_c char*2 = characters(esc_n)
<br>>DEFINE ESCAPE CHAR*1 = esc_c[1:1]<br>>DEFINE ESCAPE CHAR*1 = esc_c[1:1]<br>>DEFINE SIZE-A4 CHAR*8 = ESCAPE+ "&l26A"<br>>DEFINE LANDSCAPE-MODE CHAR*8 = ESCAPE+ "&l1O"
<br>>DEFINE LANDSCAPE-LPP CHAR*8 = ESCAPE+"&l41P"<br>>DEFINE LANDSCAPE-LPI CHAR*8 = ESCAPE+"&l6D"<br>>DEFINE PORTRAIT-MODE CHAR*8 = ESCAPE+"&l0O"<br>>DEFINE PORTRAIT-LPP CHAR*8 = ESCAPE+"&l85P"
<br>>DEFINE PORTRAIT-LPI CHAR*8 = ESCAPE+"&l8D"<br>>DEFINE TWELVE-CPI CHAR*8 = ESCAPE+"(s12H"<br>>DEFINE TEN-CPI CHAR*8 = ESCAPE+"(s10H"<br>>DEFINE POINT-SIZE-10 CHAR*8 = ESCAPE+"(s10V"
<br>>DEFINE NORMAL-PRINT CHAR*8 = ESCAPE+"(s0B"<br>>DEFINE Compress CHAR*8 = ESCAPE+"&k2S"<br>>DEFINE RESET CHAR*2 = ESCAPE + "E"<br>>;------------------------------------------------------------
<br>><br>>set rep nolim<br>>set rep dev pri<br>>set page len 85<br>>set page width 132<br>>SET PAGE NUMBER 1<br>><br>>INITIAL HEADING &<br>>TAB 001 portrait-mode portrait-lpp portrait-lpi compress size-a4 & SKIP
<br>>PAGE<br>><br>>FINAL FOOTING &<br>> SKIP 3 TAB 28 "*** END OF REPORT ***" &<br>> skip tab 1 reset<br>>***********************************************************************
<br>>***<br>>SET REPORT NOLIMIT<br>>set rep dev pri<br>>set page len 41<br>>set page width 132<br>>SET PAGE NUMBER 1<br>><br>>INITIAL HEADING &<br>>TAB 001 LANDSCAPE-mode LANDSCAPE-lpp LANDSCAPE-lpi twelve-CPI size-a4 &
<br>>SKIP PAGE<br>><br>>FINAL FOOTING &<br>> SKIP 3 TAB 28 "*** END OF REPORT ***" &<br>> skip tab 1 reset<br>><br>>***********************************************************************
<br>>*****************************************************<br>><br>><br>>At 08:50 AM 19/10/2005, you wrote:<br>> >Hi Syed,<br>> >We have used Hp2566 and similar.<br>> >They need a serial attachment {or network/parallel} if they have it
<br>> >to any PC/Print sharer. They need to be shared from that machine,<br>> >thus visible<br>> from<br>> >the server via UNC i.e. \\PSERVER1\HP2566 etc As Jeff mentioned<br>> >below; you will have to use the NT Print Command as per the insert
<br>> >below<br>> ><br>> >Rem ================================================<br>> >Rem Report Printer<br>> >Rem ================================================<br>> >Set My_Prn_Device=\\PServ2\HPI1
<br>> >Rem ================================================<br>> >Rem Send Output to Chosen Printer<br>> >Rem ================================================<br>> >If Exist %Ph_ZOutput%.txt Print /d:%My_Prn_Device% %Ph_ZOutput%.txt
<br>> ><br>> >or similar! This is an snippet from a server executed bat file.<br>> ><br>> >This method will honour any embedded escape sequences for compressed<br>> >etc that may have been used on the Hp.
<br>> >We use a series of escape sequences embedded into Page Headings etc<br>> >to address laser printers.<br>> >If you have any let me know and I can forward a PCL.QZS use file;<br>> >which I received from the list some years back.
<br>> ><br>> >In short you shouldn't have to replace your printers - unless you choose<br>to.<br>> >You WILL need a non Hp3000 serial printer cable to connect the Hp2566<br>> >etc to a PC/Print sharer. I'll check those specifications and get
<br>> >back to you. From emmory it's a "standard" serial printer cable<br>> >UNLIKE the Hp cable you<br>> may be<br>> >using. This might explain your lack of output.<br>> >Sincerely<br>
> >Glenn Baxter<br>> >=======================<br>> >Baxter IT Solutions Pty Ltd<br>> >=======================<br>> >-----Original Message-----<br>> >From: Jeff Hoffman [mailto:<a href="mailto:wonicon@optusnet.com.au">
wonicon@optusnet.com.au</a>]<br>> >Sent: Wednesday, 19 October 2005 8:21 AM<br>> >To: <mailto:<a href="mailto:powerh-l@lists.sowder.com">powerh-l@lists.sowder.com</a>><a href="mailto:powerh-l@lists.sowder.com">
powerh-l@lists.sowder.com</a><br>> >Subject: Re: Printer Question - AXIANT 4GL - A3 Size Reports<br>> ><br>> >Syed<br>> ><br>> >I forgot to add that if you start using PCL control characters (the
<br>> >temptation will be great to use some of the facilities of a laser),<br>> >windows printing will strip some of the control characters out, so<br>> >you would have to print to a file then use DOS print command, now that is
<br>fun!!!!<br>> ><br>> >Jeff<br>> ><br>> >At 08:11 AM 19/10/2005, you wrote:<br>> ><br>> > >Syed<br>> > ><br>> > >Laser printers I think are the best, just set the default font to
<br>> > >courier size 10 or 11 depending upon what will fit your largest<br>> > >report. The main problem is volume of printing required at each<br>> > >print station, the<br>> cheapies<br>> > >only support low volume work, if you get one that has a 2 to 3,000
<br>> > >sheet feeder should suffice. You could most probable replace a few<br>> > >of the old dot matix printers with one laser but do not forget<br>> > >redundancy, you<br>> should<br>> > >allow for the fact that they do break down.
<br>> > ><br>> > >I personally would recommend a HP laser (has the best PCL support),<br>> > >but I have used a Lexmark lasers as it had a 4,000 sheet (A4)<br>> > >feeded, I could load the paper at the beginning of the day and just
<br>forget about it.<br>> > ><br>> > >Jeff<br>> > ><br>> > >At 05:07 AM 19/10/2005, you wrote:<br>> > ><br>> > >>Dear Gurus,<br>> > >>Quick Intro: I've migrated a PH/MPEIX application to
<br>> > >>AXIANT4GL/WINDOWS (Thin Client).<br>> > >><br>> > >>The printers currently in use in MPEIX are<br>> > >> (1) HP 2566 C<br>> > >>and (2) HP 2563 A.
<br>> > >><br>> > >>These dot matrix printers doesn't seem to work with Windows. The<br>> > >>infrastructure guys say that no Windows XP drivers are available<br>> > >>for these printers.
<br>> > >><br>> > >>My problem is, these printers are printing A3 size reports.<br>> > >>Can anyone help me in knowing the best replacement for these<br>> > >>printers in Windows XP/2003 to print A3 reports.
<br>> > >>I don't have the option of reformatting the reports to A4 size.<br>> > >><br>> > >>I'd appreciate your efforts to help me out of this issue.<br>> > >><br>> > >>Thanks and Regards,
<br>> > >>SYED<br>> > >><br>> > >><br>> > >>--<br><br>--<br>= = = = = = = = = = = = = = = = = = = = = = = = = = = = Mailing list:<br><a href="mailto:powerh-l@lists.sowder.com">
powerh-l@lists.sowder.com</a><br>Subscribe: "subscribe" in message body to <a href="mailto:powerh-l-request@lists.sowder.com">powerh-l-request@lists.sowder.com</a><br>Unsubscribe: "unsubscribe &lt;password&gt;" in message body to
<br><a href="mailto:powerh-l-request@lists.sowder.com">powerh-l-request@lists.sowder.com</a><br><a href="http://lists.sowder.com/mailman/listinfo/powerh-l">http://lists.sowder.com/mailman/listinfo/powerh-l</a><br>This list is closed, thus to post to the list you must be a subscriber.
<br>--<br>= = = = = = = = = = = = = = = = = = = = = = = = = = = =<br>Mailing list: <a href="mailto:powerh-l@lists.sowder.com">powerh-l@lists.sowder.com</a><br>Subscribe: "subscribe" in message body to <a href="mailto:powerh-l-request@lists.sowder.com">
powerh-l-request@lists.sowder.com</a><br>Unsubscribe: "unsubscribe &lt;password&gt;" in message body to <a href="mailto:powerh-l-request@lists.sowder.com">powerh-l-request@lists.sowder.com</a><br><a href="http://lists.sowder.com/mailman/listinfo/powerh-l">
http://lists.sowder.com/mailman/listinfo/powerh-l</a><br>This list is closed, thus to post to the list you must be a subscriber.<br></blockquote></div><br>