sushantbhagat
May 27 2005, 05:32 AM
Hi All,
i am required to make a call from VB6 to a escape sequences(in asci) (for printing). the printer's escape sequences is as following
******** Escape Sequence Starts ***********
{D2921,0201,2901|}
{AY;+10,0|}
{C|}
{XB00;0030,1388,A,3,04,3,0110,+0000000000,000,0,00|}
{PC000;0047,1052,1,1,K,33,B|}
{PC001;0090,1046,1,1,J,33,B|}
{PC002;0130,1045,1,1,J,33,B|}
{PC003;0177,1043,1,1,K,33,B|}
{PC004;0173,1302,15,15,G,33,B|}
{RB00;>59878>69|}
{RC000;Patient: Sushant Bhagat|}
{RC001;ADM: 09 Feb 05|}
{RC002;Sex: Male|}
{RC003;Age:28|}
{RC004;98789|}
{XS;I,0001,0000C2200|}
********* Escape Sequence Ends ************
Can anyone help me how to make the call to this from VB6 code.
Thanks for your help in advance.
Regards,
Sushant Bhagat
sushant.bhagat@columbiaasia.com
squall_leonhart69r
May 28 2005, 08:58 AM
doesn't the VB6 documentation have something on this
igor
May 29 2005, 09:47 PM
Hi,
I'm confused. Last time I checked, and this was over a decade ago, escape print sequences were markup-like elements in printer programming that allowed users to activate things like bold writing and special formatting.
What are you trying to do with them exactly that won't work by simply dumping them where you need them in the ascii stream being fed to the printer port?
sushantbhagat
May 31 2005, 03:19 PM
QUOTE (igor @ May 30 2005, 03:17 AM)
Hi,
I'm confused. Last time I checked, and this was over a decade ago, escape print sequences were markup-like elements in printer programming that allowed users to activate things like bold writing and special formatting.
What are you trying to do with them exactly that won't work by simply dumping them where you need them in the ascii stream being fed to the printer port?
Hi,
i am trying to print wrist bands for the patients who walk into our hospital. the patients will be tagged with details like his name, blood group etc etc. The printer supliers have given us the ASCII (escape sequences) for the printing the content. Snce our existing system is in VB6, i need help how to make a call to it from VB6.
Regards,
Sushant Bhagat
sushant.bhagat@columbiaasia.com
igor
Jun 1 2005, 12:40 AM
Hm. Perhaps I continue to misunderstand, but if the ASCII codes are correct for your printer, then all you need to do is produce a raw ascii print of the codes you have - escape commands are interpreted by the printer, what do you need to do with them in VB6 exactly, since you already have them?