Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lprinting printer control codes?
#15
I too really miss printer control codes. I wish to drive a Laserjet using HPGL. I call HPGL output with a PCL escape code to eg draw a right angled triangle:

'****** test of hpgl
 
LPrint Chr$(27); "E"; 'printer reset
LPrint Chr$(27); "&l1O" 'landscape    0O for portrait
LPrint Chr$(27); "%0B"; 'enter hpgl using previous hpgl cursor posit
LPrint "IN"; 'initialise
LPrint "SC0,40,0,40,2;"; 'working in millimetres
LPrint "SP1PA10,10;" 'select pen1 move to 10,10
LPrint "PD;" 'pen down &
LPrint "PA50,10;"; 'draw (50,10)
LPrint "PA10,20;"; '    (10,20)
LPrint "PA10,10;"; '    (10,10)
'LPRINT CHR$(27); "%0A";    'enter pcl mode
LPrint Chr$(27); "E"; 'reset to end & print

It is not clear from this discussion if it is not possible to add control codes to QB64PE for some technical reason (but apparently CHR$(27) works?) or that it is possible but just hasn't been done?

If the latter can I ask that this is scheduled for a subsequent release please?
Reply


Messages In This Thread
Lprinting printer control codes? - by arnoldhf - 08-03-2022, 08:03 PM
RE: Lprinting printer control codes? - by Pete - 08-03-2022, 10:53 PM
RE: Lprinting printer control codes? - by Pete - 08-03-2022, 11:52 PM
RE: Lprinting printer control codes? - by Pete - 08-04-2022, 12:06 AM
RE: Lprinting printer control codes? - by Pete - 08-04-2022, 12:39 AM
RE: Lprinting printer control codes? - by Pete - 08-04-2022, 02:34 AM
RE: Lprinting printer control codes? - by Wolstan Dixie - 04-27-2024, 10:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need a Printer/Tester SMcNeill 14 2,078 06-04-2024, 07:11 PM
Last Post: bplus
  control characters in Change dialog box digitalmouse 10 1,876 05-09-2024, 02:17 AM
Last Post: digitalmouse
  Possible to control Windows 11 volume? loopy750 4 1,107 01-16-2024, 10:52 PM
Last Post: madscijr
  Printing to my Printer Dimster 17 6,991 07-14-2022, 06:54 PM
Last Post: SMcNeill

Forum Jump:


Users browsing this thread: 1 Guest(s)