' I'm having a bit of a problem with XPRINT and hope somebody
' can figure out why. This is related to XPRINTing the extended
' ASCII character set.
'
' I do my finances almost exclusively on-line and computer,
' but I groove on having a paper backup. Hence, here is my
' paper "Register".
'
' On the screen, everything displays perfectly but when it
' comes to XPRINTing things get squirrely.
'
' All the extended ASCII characters get changed to something
' else. I've tried various fonts and printer settings, all to
' no avail.
'
' Anybody?????
'
' can figure out why. This is related to XPRINTing the extended
' ASCII character set.
'
' I do my finances almost exclusively on-line and computer,
' but I groove on having a paper backup. Hence, here is my
' paper "Register".
'
' On the screen, everything displays perfectly but when it
' comes to XPRINTing things get squirrely.
'
' All the extended ASCII characters get changed to something
' else. I've tried various fonts and printer settings, all to
' no avail.
'
' Anybody?????
'
Code:
#COMPILE EXE ' ' FUNCTION PBMAIN () AS LONG ' LOCAL x AS LONG ' CONSOLE SCREEN 25,82 ' COLOR 14,1 ' CLS ' ' Header$ = " Date Number Payee" + SPACE$(24)' Header$ = Header$ + "Amount Deposit Clr Balance" ' ' TopRow$ = CHR$(201) + STRING$(80,205) + CHR$(187) ' MID$(TopRow$, 8,1) = CHR$(203) ' Check Number MID$(TopRow$,16,1) = CHR$(203) ' Date MID$(TopRow$,45,1) = CHR$(203) ' Payee MID$(TopRow$,55,1) = CHR$(203) ' Payee amount MID$(TopRow$,65,1) = CHR$(203) ' Deposit amount MID$(TopRow$,68,1) = CHR$(203) ' Cleared? ' MidRow$ = CHR$(204) + STRING$(80,205) + CHR$(185) ' MID$(MidRow$, 8,1) = CHR$(206) ' MID$(MidRow$,16,1) = CHR$(206) ' MID$(MidRow$,45,1) = CHR$(206) ' MID$(MidRow$,55,1) = CHR$(206) ' MID$(MidRow$,65,1) = CHR$(206) ' MID$(MidRow$,68,1) = CHR$(206) ' ' BotRow$ = CHR$(200) + STRING$(80,205) + CHR$(188) ' MID$(BotRow$, 8,1) = CHR$(202) ' MID$(BotRow$,16,1) = CHR$(202) ' MID$(BotRow$,45,1) = CHR$(202) ' MID$(BotRow$,55,1) = CHR$(202) ' MID$(BotRow$,65,1) = CHR$(202) ' MID$(BotRow$,68,1) = CHR$(202) ' ' MidSep$ = CHR$(186) + STRING$(80, 32) + CHR$(186) ' MID$(MidSep$, 8,1) = CHR$(186) ' MID$(MidSep$,16,1) = CHR$(186) ' MID$(MidSep$,45,1) = CHR$(186) ' MID$(MidSep$,55,1) = CHR$(186) ' MID$(MidSep$,65,1) = CHR$(186) ' MID$(MidSep$,68,1) = CHR$(186) ' ' LOCATE 1,1 : PRINT;Header$ ' LOCATE 2,1 : PRINT;TopRow$ ' FOR x = 4 TO 22 STEP 2 ' LOCATE x,1 ' PRINT;MidRow$; ' NEXT x ' ' FOR x = 3 TO 23 STEP 2 ' LOCATE x,1 ' PRINT;MidSep$; ' NEXT x ' ' LOCATE 24,1 ' PRINT;BotRow$; ' ' IF WAITKEY$ = CHR$(27) THEN EXIT FUNCTION ' Abort printout ' XPRINT ATTACH CHOOSE ' XPRINT FONT "courier new", 10, 0 ' ' XPRINT Header$ ' XPRINT TopRow$ ' ' FOR x = 1 TO 30 ' XPRINT MidSep$ ' XPRINT Midrow$ ' NEXT x ' XPRINT MidSep$ ' XPRINT;BotRow$ ' ' XPRINT FORMFEED ' XPRINT CLOSE ' ' END FUNCTION ' '
Comment