legacy printing problem

Xbase++ 2.0 Build 554 or later
Post Reply
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

legacy printing problem

#1 Post by rdonnay »

A customer of mine has converted some old Clipper code and we can't make the SET PRINTER TO OBJECT <oPrinter> work.

I found an old test program and it doesn't work either.
I'm sure it worked in the past when I wrote it.

Does anyone use SET PRINTER TO OBJECT ?

FUNCTION Main()

LOCAL oPrinter, cPrinter := 'HP OfficeJet 4650 series'

oPrinter := XbpPrinter():new():create(cPrinter)
SET PRINTER TO OBJECT oPrinter
SET DEVICE TO PRINT

@ 10,10 SAY 'This is a test'
EJECT

SET DEVICE TO SCREEN
SET PRINTER TO

RETURN nil
The eXpress train is coming - and it has more cars.

bobvolz
Posts: 114
Joined: Sun Jan 31, 2010 11:25 am

Re: legacy printing problem

#2 Post by bobvolz »

Hi Roger;
Many years ago you distributed a .prg file called prchoice.prg. In it were functions Print_Choice and Print_On.

These became the default functions for ALL printing in our system. I would recommend your client convert to this.

Bob Volz

Post Reply