Printing to an old dot matrix tractor feed printer

This forum is for eXpress++ general support.
Message
Author
messaoudlazhar
Posts: 42
Joined: Mon Dec 23, 2013 2:10 pm
Contact:

Re: Printing to an old dot matrix tractor feed printer

#11 Post by messaoudlazhar »

you can use FormSize I think it works well:

- Create a new form with the required dimensions from the print server properties
- use the form created :

DCPRINT ON TO ... FORMSIZE <form>

-------------
Best Regards

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Printing to an old dot matrix tractor feed printer

#12 Post by Eugene Lutsenko »

I'm on the computer as printer a pdf-driver is installed and I always print in pdf-file, which is then no problem standard means printed on any printer

Jean
Posts: 13
Joined: Tue Jan 07, 2014 9:51 am

Re: Printing to an old dot matrix tractor feed printer

#13 Post by Jean »

messaoudlazhar wrote:you can use FormSize I think it works well:

- Create a new form with the required dimensions from the print server properties
- use the form created :

DCPRINT ON TO ... FORMSIZE <form>

-------------
Best Regards
Thank you and as soon as everyone leaves me alone I am doing it. Can you relate?

Jean
Posts: 13
Joined: Tue Jan 07, 2014 9:51 am

Re: Printing to an old dot matrix tractor feed printer

#14 Post by Jean »

Eugene Lutsenko wrote:I'm on the computer as printer a pdf-driver is installed and I always print in pdf-file, which is then no problem standard means printed on any printer
I am going to try the "DCPRINT ON TO ... FORMSIZE <form>" and if need be try the pdf approach. Thanks for your idea!
Jean

Wolfgang Ciriack
Posts: 479
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: Printing to an old dot matrix tractor feed printer

#15 Post by Wolfgang Ciriack »

I think, printing a PDF-document to a dot matrix printer is no good idea, evreything is printed as grafic and this is extremly slow.
_______________________
Best Regards
Wolfgang

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

Re: Printing to an old dot matrix tractor feed printer

#16 Post by rdonnay »

As the old water program is a dos app is it possible to get it to run on the new windows?
Is the old program written in Clipper?

If not, then you have a few options.

1. Run on 64-bit systems using DOSBOX.EXE.
2. Run on 32-bit systems.

If it is written in Clipper, then it only needs recompiling in Xbase++.
The eXpress train is coming - and it has more cars.

messaoudlazhar
Posts: 42
Joined: Mon Dec 23, 2013 2:10 pm
Contact:

Re: Printing to an old dot matrix tractor feed printer

#17 Post by messaoudlazhar »

To create form in Windows XP see : http://www.ehow.com/how_5672136_create- ... ws-xp.html
To create form in Windows 7 see : http://windowsitpro.com/windows-7/q-how ... -windows-7

BEGIN SEQUENCE
Imprfont:="12.Times New Roman"
DCPRINT OPTIONS TO aOptions NOSCALE UNITS GRA_PU_LOMETRIC
DCPRINT ON TO oPrinter FONT Imprfont OPTIONS aOptions CANCELENABLE FORMSIZE "LabelForm"
if valtype(oPrinter) # "O" .or. !oPrinter:lActive
BREAK
endif
...
// Your code
...
END SEQUENCE
DCPRINT OFF
RETURN

Good job!

Jean
Posts: 13
Joined: Tue Jan 07, 2014 9:51 am

Re: Printing to an old dot matrix tractor feed printer

#18 Post by Jean »

rdonnay wrote:
As the old water program is a dos app is it possible to get it to run on the new windows?
Is the old program written in Clipper?

If not, then you have a few options.

1. Run on 64-bit systems using DOSBOX.EXE.
2. Run on 32-bit systems.

If it is written in Clipper, then it only needs recompiling in Xbase++.
No not clipper.
Jean

Jean
Posts: 13
Joined: Tue Jan 07, 2014 9:51 am

Re: Printing to an old dot matrix tractor feed printer

#19 Post by Jean »

I was side tract on this issue for awhile and I had been a bit under the weather. Just getting back to this issue. I know no one has a tractor feed printer so I thought may be a test app would be the best thing to show you what is happening. If you send this report to a file the results are similar to what happens when I send it to a tractor printer. May be you can explain to me what I should do to correct this.

It appears that the if you have a line like this "DC_PrinterRow(),23 DCPRINT SAY 'Curr'" it moves over 23 spaces from the last thing that printed and not from the being of the line.

Jeanne
Attachments
Test.zip
Printer test to a TEXTONLY file..
(1 KiB) Downloaded 600 times

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

Re: Printing to an old dot matrix tractor feed printer

#20 Post by rdonnay »

If you want it to start at the end of the last thing printed, then try @ DC_PrinterRow(),DC_PrinterCol() DCPRINT SAY 'Curr'".

You are printing everything on a grid.

The grid defaults to 60 rows and 80 columns.

When you print at column 33, you are printing 33/80 of the width of the page.
The eXpress train is coming - and it has more cars.

Post Reply