Printing memo file record to laser printer

This forum is for general support of Xbase++
Post Reply
Message
Author
DDunlap
Posts: 8
Joined: Mon Jan 12, 2015 12:56 pm

Printing memo file record to laser printer

#1 Post by DDunlap »

In reading memotran(), I get the impression the example is working with a dot matrix printer. I need to print to laser/inkjet printer.
Would I modify the modify the example under memotran using the dcprint feature ?

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Printing memo file record to laser printer

#2 Post by rdonnay »

What example are you talking about?

This should not in any way be related to the type of printer.
The eXpress train is coming - and it has more cars.

DDunlap
Posts: 8
Joined: Mon Jan 12, 2015 12:56 pm

Re: Printing memo file record to laser printer

#3 Post by DDunlap »

I am attempting to print a memo file record.

procedure esm0044a(ordidno,notetype) // PRINT MEMEO
do case
case notetype = 1
SELECT(0)
USE WRKONOTE INDEX WRKONOTE
SEEK ordidno
IF .NOT. eof()
ELSE
use
return
ENDIF
endcase
do case
case notetype = 1
set print on
set console off
do while wkordnum = ordidno
? wkordnum
?? chr(27)+chr(97)+chr(3)
@ 1,0 dcprint say memotran(notes1," "," ")
?? chr(27)+chr(97)+chr(0)
enddo
use
set print off
set console on
case notetype = 2
case notetype = 3
endcase
return

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Printing memo file record to laser printer

#4 Post by rdonnay »

Donald -

It looks like you haven't used the DCPRINT system before.

You are using commands like SET PRINT ON, SET CONSOLE OFF, Escape sequences, etc.

The DCPRINT system uses DCPRINT ON.

I suggest that you look at the samples in \exp19\samples\printer.
The eXpress train is coming - and it has more cars.

Post Reply