UtterAccess.com
Thank you for your support!      
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

> sending hex code to printer without "    
 
   
dkmarsh
post Apr 27 2007, 12:19 AM
Post #1

UtterAccess Addict
Posts: 140



I have an application that needs to send a hex code to a printer. The problem I am having is that it is sending a hex 22 charactor (which is a ") at the start and end of string.

How can I stop it sending the hex 22 at the start and end of the string ?

The variable is defined as:

Public g_open_code As String

g_open_code = Chr$(27) & Chr$(112) & Chr$(0) & Chr$(5) & Chr$(80)


The code that issues the command is:

Open w_strportname For Output As #w_freefile

Write #w_freefile, g_open_code

Close #w_freefile
Go to the top of the page
 
+

Posts in this topic


Reply to this topicStart new topic

 



RSS Go to Top  ·  Lo-Fi Version Time is now: 4th February 2012 - 11:23 PM