If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > without click??

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-09-04, 16:01
paperhoward paperhoward is offline
Registered User
 
Join Date: Jan 2004
Posts: 4
without click??

Hi all:
I am messing with Epson's thermal printer driver. I need to send a cut command to the printer. Epson provides sample code (for application) in VB form to call the driver API. Here is what I did:
-------------------------------------
Private Sub cmdFullCut_Click()
'Cut the paper
Printer.Print
Printer.Font.Name = fntTitleName
Printer.Font.Size = 10
Printer.ScaleMode = PIXELS

Printer.Font.Name = "control"
Printer.Print "F" 'Full cut
Printer.EndDoc
End Sub
--------------------------------------
I know the code is linked to the button in the form. I have to have a form with a clickable button in order to make this thing work. Here is my question:
Is there a way to make it work without the form?? I want ot make it a self executing routine so another program can call it when necessary.

Thanks!
Reply With Quote
  #2 (permalink)  
Old 01-09-04, 16:03
paperhoward paperhoward is offline
Registered User
 
Join Date: Jan 2004
Posts: 4
Sorry , forgot to mention that I want to make it like a .exe without the form (window). Pretty much like a C++ console application. Any input is much appreciated.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On