BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Delphi causes GPF, other apps print OK

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting
View previous topic :: View next topic  
Author Message
Franz-Leo Chomse
Guest





PostPosted: Mon Oct 20, 2003 5:32 pm    Post subject: Re: Delphi causes GPF, other apps print OK Reply with quote




Quote:
However, attempting to print from Delphi 5 causes a GPF linked to the
ZSDEPL.DRV module (the printer driver). Label size is the right one. Printer
is attached to the LPT1 port and it's the default printer.

My printing code is as follows:

You do not print a valid label description. All Zebra print files I
know start with a CR LF sequence to clear the label buffer.

Zebra printers expect a valid EPL/2 command sequence

Regards from Germany

Franz-Leo



Back to top
Jorge Alvarez
Guest





PostPosted: Mon Oct 20, 2003 5:50 pm    Post subject: Re: Delphi causes GPF, other apps print OK Reply with quote



Quote:
My printing code is as follows:

You do not print a valid label description. All Zebra print files I
know start with a CR LF sequence to clear the label buffer.

Zebra printers expect a valid EPL/2 command sequence


I see your point, but I believe this would be the windows driver
responsability? And I think it's doing it OK because test lines can be
printed out from other windows applications. Problem with Delphi is not that
the lines are not being printed, it's the General Protection Fault :-(

Thanks a lot,

-Jorge



Back to top
Franz-Leo Chomse
Guest





PostPosted: Mon Oct 20, 2003 6:54 pm    Post subject: Re: Delphi causes GPF, other apps print OK Reply with quote




Quote:
I see your point, but I believe this would be the windows driver
responsability? And I think it's doing it OK because test lines can be
printed out from other windows applications. Problem with Delphi is not that
the lines are not being printed, it's the General Protection Fault Sad

No. For the Zebra Label printer the only reason for the printer driver
is to provide a printer spooler for serializing the output. The main
problem in using a Zebra printer is to assure that you do raw
printing.

The other programs use the Windows printer driver which maps all
input to plain text. With AssignPrn you indicates that you want RAW
mode and have to provide the real command sequence.

The Letter T is not even an allowed sequence identifier.

Regards from Germany

Franz-Leo


Back to top
Jorge Alvarez
Guest





PostPosted: Mon Oct 20, 2003 9:23 pm    Post subject: Re: Delphi causes GPF, other apps print OK Reply with quote

Quote:
I see your point, but I believe this would be the windows driver
responsability? And I think it's doing it OK because test lines can be
printed out from other windows applications. Problem with Delphi is not
that
the lines are not being printed, it's the General Protection Fault :-(

No. For the Zebra Label printer the only reason for the printer driver
is to provide a printer spooler for serializing the output. The main
problem in using a Zebra printer is to assure that you do raw
printing.


I see. As a further test, I highlited a block of text from one of my units
and attempted to print that block out from Delphi's IDE. Same GPF problem
(Delphi crash.) This time I didn't request raw mode. I don't want to bitch,
just try to understand what's happening.

Thanks a lot,

-Jorge



Back to top
Ignacio Vazquez
Guest





PostPosted: Tue Oct 21, 2003 2:15 am    Post subject: Re: Delphi causes GPF, other apps print OK Reply with quote

Hello, Jorge!
You wrote on Mon, 20 Oct 2003 16:23:30 -0500:
Quote:
As a further test, I highlited a block of text from one of my units
and attempted to print that block out from Delphi's IDE. Same GPF problem
(Delphi crash.) This time I didn't request raw mode.

No, but the IDE may have.

Quote:
I don't want to
bitch, just try to understand what's happening.

I'm fairly certain that most people see your point of view, so don't sweat
it.

Try using Printer.Canvas.TextOut and seeing if you can send some text to it
that way.

Cheers.
Ignacio



Back to top
Franz-Leo Chomse
Guest





PostPosted: Wed Oct 22, 2003 9:27 am    Post subject: Re: Delphi causes GPF, other apps print OK Reply with quote


Quote:
I see. As a further test, I highlited a block of text from one of my units
and attempted to print that block out from Delphi's IDE. Same GPF problem
(Delphi crash.) This time I didn't request raw mode. I don't want to bitch,
just try to understand what's happening.

Very bad written driver. The properties returned by the driver do not
match the printer at all. I even had a driver which reported to be
able to use color.

The Label printer use EPL/2. This is a pure text format. They
assume that the sequences are build by the application. The only
task for the driver is to let the OS activate a spooler to serialize
the usage and to block the port. The drivers seem to be just
recompiled demo versions.

You need to check the EPL/2 manual which is on the driver CD
and enter one of the example programs.

Due to the mixture of barcodes, boxes, text etc there is no way
to access the printers without paying much much more for
software than for the hardware

Regards from Germany

Franz-Leo


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.