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: FS q command

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
DelphiNew
Guest





PostPosted: Fri Feb 03, 2006 8:39 am    Post subject: Re: FS q command Reply with quote



Yes, my printer is responding to ESC/P commands like cut paper and line
feed.

If I use a API function called "Escape", I print text fastly, but I
can't print bitmaps.

My printer is a Samsug SRP-350 and, according their manual, the
commands to define and print images are, respectively, "<FS> q n m ..."
and "<FS p n>", but I don't found any kind of information about that,
so I'm trying to use standard ESC/P commands to do it.

If nobody know how can I do it, there aren't any problem, because I
solved using Printer.Canvas object.

Thank you very much

Back to top
DB-1
Guest





PostPosted: Fri Feb 03, 2006 9:37 am    Post subject: Re: FS q command Reply with quote



DelphiNew wrote:
Quote:

My printer is a Samsug SRP-350 and, according their manual, the

Sorry to put it this way, but even un-professional end users that have
some printing problems usually are able to tell what printer model tehy
are using. Yet you decided to keep your secrecy about the SRP-350 model
this far...

I have no idea what you are actually trying to do with your Delphi and
with those ESC-sequences to print bitmap graphics etc. I earlier already
made my suggestion to use standard Windows printing tools, and I will
not repeat that all again.

I'll only tell this:

-Theres's standard Windows driver available for SRP350 printer, offering
all the usual Windows graphics printing capabilities.

-If you have speed problems in graphics printing, select USB or LPT
interface instead of serial interface. You can easily change the
interface card in SRP-printer, the cost is about 5$..6$.

-To send the needed ESC-sequence for SRP's paper cutter, the current
SRP-350 drivers will do it all for you.
http://www.samsungminiprinters.com/support/Drivers.asp
You can set what sequences the driver sends to the printer before and
after the data you sent to the printer.

Quote:
If nobody know how can I do it, there aren't any problem, because I
solved using Printer.Canvas object.

That is the old and hard way, and someone probably is able to tell you
how you can also go trough that path.
DB-1

Back to top
J French
Guest





PostPosted: Fri Feb 03, 2006 10:34 am    Post subject: Re: FS q command Reply with quote



On 3 Feb 2006 00:39:52 -0800, "DelphiNew" <jcalata (AT) hotmail (DOT) com> wrote:

Quote:
Yes, my printer is responding to ESC/P commands like cut paper and line
feed.

If I use a API function called "Escape", I print text fastly, but I
can't print bitmaps.

My printer is a Samsug SRP-350 and, according their manual, the
commands to define and print images are, respectively, "<FS> q n m ..."
and "<FS p n>", but I don't found any kind of information about that,
so I'm trying to use standard ESC/P commands to do it.

I've done a hunt and found a PDF manual for the SRP-350

It is at:
http://www.goodson.com.au/support/Download_UM_samsung.htm

It contains a full table of 'ESC' codes

From looking at the file, it appears that the printer uses a hybrid
set of control commands - a bit different from ESC/P

<FS> p n m 1C 70 n m Print NT bit image

Looks like <FS> is used instead of <ESC> here,
- Chr(2Cool instead of Chr(26)

There are also some interesting commands for storing and printing a
stored bitmap

The printer also supports a 'Star emulation mode' that looks like an
old version of Epson - probably wise to avoid that - initially at
least.

Quote:
If nobody know how can I do it, there aren't any problem, because I
solved using Printer.Canvas object.

For curiousity I would be inclined to get the printer working using
all possible modes and give it a software configuration so you can
switch modes.

If nothing else it will ensure that your print routine is generic
which will be handy /when/ (not if) the client decides to use another
printer.

The way I do it is to embed human readable 'control characters' in the
docket, then pass that text through an interpreter that converts the
'human readable' codes into the real 'ESC' codes, that way one can
print to screen in debug mode which is distinctly handy.

I would also be inclined to run up a little testbed App for
demonstrating and testing the various print commands.



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc 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.