Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: ursula
  Where is ursula?
 Jakarta
 Indonesia
 ursula
 To: Jun Tangunan
  Where is Jun Tangunan?
 Cabanatuan
 Philippines
 Jun Tangunan
 Tags
Subject: RE: Print LPT1
Thread ID: 288357 Message ID: 289040 # Views: 32 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Reports and Printers
Date: Tuesday, December 28, 2010 5:11:17 AM         
   


Sir I have tried your advice and it works.. thanks a lot.. you are really very helpful


> > Dear all,
> >
> > I have an issue on making the command prompt invisible. Everytime I run this code below, I always see the command prompt flashing (1 second). Any idea how to make it disappeared?
> >
> >
> > strLT="SA"
> > strPWR="123"
> > strBARCODE="21446"
> > 
> > 
> > 
> > set printer to file Junk.txt
> > set printer on
> > 
> > ??chr(2)
> > ??Chr(27) + "A"
> > ??Chr(27) + "A3H001V001"
> > ??Chr(27) + "H550" + Chr(27) + "V010" + Chr(27) + "L0102" + Chr(27) + "P02" + Chr(27) + "XS" + strLT
> > ??Chr(27) + "H550" + Chr(27) + "V060" + Chr(27) + "L0202" + Chr(27) + "P01" + Chr(27) + "XS" + strPWR
> > ??Chr(27) + "H550" + Chr(27) + "V098" + Chr(27) + "BG02045>G" + strBARCODE
> > 
> > ??Chr(27) + "Q1"
> > ??Chr(27) + "Z"
> > ??Chr(3)
> > 
> > set printer to
> > set printer off
> > set device to screen
> > 
> > RUN TPE Junk.txt > LPT1

> >
> > Thanks
> > Ursula
>
> Try this:
>
>
LOCAL oWsh, lcCommand
> oWsh = Newobject('wscript.shell')
> lcCommand = 'CMD /c TYPE Junk.txt > LPT1'
> oWsh.Run(lcCommand,0,.T.)
> 

>
> http://www.junblogs.com/
> http://weblogs.foxite.com/sandstorm36/default.aspx
> http://www.coderisland.com/forum/viewforum.php?f=10

ENTIRE THREAD

Print LPT1 Posted by ursula @ 12/20/2010 2:44:31 PM
RE: Print LPT1 Posted by Mustapha Bihmouten @ 12/20/2010 2:52:26 PM
RE: Print LPT1 Posted by ursula @ 12/20/2010 3:10:30 PM
RE: Print LPT1 Posted by Mustapha Bihmouten @ 12/20/2010 4:16:38 PM
RE: Print LPT1 Posted by ursula @ 12/21/2010 3:03:13 PM
RE: Print LPT1 Posted by Jun Tangunan @ 12/21/2010 4:30:26 AM
RE: Print LPT1 Posted by ursula @ 12/21/2010 3:04:30 PM
RE: Print LPT1 Posted by ursula @ 12/28/2010 5:11:17 AM
RE: Print LPT1 Posted by Jun Tangunan @ 12/28/2010 5:52:39 AM