Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Anil Sharma
  Where is Anil Sharma?
 ludhiana
 India
 Anil Sharma
 To: jha manjit
  Where is jha manjit?
 delhi
 India
 jha manjit
 Tags
Subject: RE: printer
Thread ID: 187839 Message ID: 189396 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Reports and Printers
Date: Thursday, August 14, 2008 6:35:56 PM         
   


> dear sir
> thanksfor ur reply
> but i don't want to open notepad, because the program run on client site
> any other way to print?
> >
> > Declare Integer ShellExecute In Shell32;
> > INTEGER HWnd, String @lpOperation,;
> > STRING @lpFile, String @lpParameters,;
> > STRING @lpDirectory, SHORT nShowCmd
> >
> >
> > lcop = 'open'
> > lcparms = ""
> > lcdir = JustPath("c:\abc.txt")
> > lcfile= "abc.txt"
> >
> >
> > = ShellExecute(0, @lcop, @lcfile, @lcparms, @lcdir,1 )
> >
> > it will open your text file in notepad. print from there!
> >
> >
> >
> > Anil
> > (Fox is the solution for almost everything!!)

hi manjit
just make your default printer to the epson and then in vfp just do this

TYPE c:\abc.txt TO PRINT


Anil
(Fox is the solution for almost everything!!)

ENTIRE THREAD

printer Posted by jha manjit @ 8/6/2008 7:41:29 AM
RE: printer Posted by Arjun Bagojikop @ 8/6/2008 8:49:33 AM
RE: printer Posted by jha manjit @ 8/7/2008 9:32:38 AM
RE: printer Posted by jha manjit @ 8/13/2008 1:19:36 PM
RE: printer Posted by Anil Sharma @ 8/13/2008 3:08:12 PM
RE: printer Posted by jha manjit @ 8/14/2008 5:01:21 PM
RE: printer Posted by Anil Sharma @ 8/14/2008 6:35:56 PM
RE: printer Posted by Arjun Bagojikop @ 8/14/2008 6:27:19 PM