|
-
Jan 9th, 2007, 12:24 AM
#1
Thread Starter
New Member
esc/pos command
i am writing a program using visual basic 6 to print receipt to Epson compatible POS Printer. For printing Text is ok, but i wanted to include image into the receipt, but i don't know how to do so.
For Text printing, I use the ESC/POS command something like
Open "LPT1:" For Output As #1
Print #1, Chr$(27) + "@" ' initial printer
Print #1, "my code here"
Print #1, Chr$(27); "m" ' cut receipt
Close #1
i saw the epson pos printer manual, it say use the ESC/POS Command like
GS ( L - define,download and print NV graphics
GS * - define downloaded bit image
GS / - print downloaded bit image
FS p - print NV bit image
FS q - Define NV bit Image
but i don't know how to use the following command in order to print a image.
please help.
Last edited by RobDog888; Jan 9th, 2007 at 01:49 AM.
-
Jan 9th, 2007, 12:40 AM
#2
Re: esc/pos command
Welcome to the Forums 
Could you possible explain a bit more on what the problem is?
Last edited by Andrew G; Jan 9th, 2007 at 12:44 AM.
-
Jan 9th, 2007, 01:04 AM
#3
Fanatic Member
Re: esc/pos command
Are you trying to print or output printer commands ?
ESC = chr(27)...See the ASCII table link
Alpha Micro: Alpha Basic, AS400 V5r2, EDI (Trusted Link/ Inovis.com),Access AS/400 via VB6, Qbasic for data conversions. A mix of Hardware too. ASCII Table , New Number to Words/66 digits , AS/400(v5r2) VB6 Viewer/Ask for code(ODBC) ^ What Is Transferring? , Check your Ports #Perfect Passwords , *Slide Bar Example , Logoff, Restart, Shut-Down PC *Keep Form On Top , Opaque Form ^ Create Objects at Run Time @ Check Key Caps Locks # GetTickCount(System Up Time) * Convert text to Excel & Collected Icons + Resize: Form/Text box ^ PC GateWay via Shell $ Drag & Drop Game ! PopUpMenu *Print File/no Open# Timer on Mult Forms ~ Splash & Mult Forms & Lots of Comments + Random/Timer/Guess * Dec >Hex >Oct >Bin % Get MAC (NIC) < saving to Registry > Wookiee Cookies \ BackUpDisk / World Conection SpeedTest $ Glossary Commonly Used Terms # phonetic list @ Detailed Computer Scan
When posting Code, Use tags.. [CODE] *Your Code* [/CODE]
-
Jan 9th, 2007, 01:37 AM
#4
Re: esc/pos command
To print graphics you probably will have to use other print methods, try to do a search, since that prints only text and has no by-pixel control. You can print the content of a form using the form's print method (which implies you place the graphics and text to be printed on the form) but that has its drawbacks.
-
Jan 9th, 2007, 01:39 AM
#5
Re: esc/pos command
Please don't make duplicate threads in the future. You can edit your posts. Thanks.
-
Jan 9th, 2007, 01:46 AM
#6
Fanatic Member
Re: esc/pos command
Phang, you need to create and send a bitmap image.
I did this years ago. I create an image using 10101110000011
The printer converted this to dots. This printer might want chr(?) values.
Sounds like an experiment...
-
Jan 9th, 2007, 01:50 AM
#7
Re: esc/pos command
Duplicate threads merged.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 9th, 2007, 01:57 AM
#8
Thread Starter
New Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|