From: jha manjit
To: Anil Sharma
Visual FoxPro 9 SP2
Reports and Printers
Thursday, August 14, 2008 5:01:21 PM
This message was rated by:
thanksfor ur reply
but i don't want to open notepad, because the program run on client site
any other way to print?
> > dear sir
> > i tried it but it allway says "no"
> > my computer name is imh
> > printer has been shared and its share name is epson
> > (printer is epson lx 300+ II and connected via usb port)
> > i give the syntax
> > CopyFile('C:\untitled.txt','\\imh\epson',0)
> > but could not be successful
> > i think i could not catch all the words u wrote
> > pls. tell what wrong i'm doing
> 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!
> (Fox is the solution for almost everything!!)
Posted by jha manjit @ 8/6/2008 7:41:29 AM
Posted by Arjun Bagojikop @ 8/6/2008 8:49:33 AM
Posted by jha manjit @ 8/7/2008 9:32:38 AM
Posted by jha manjit @ 8/13/2008 1:19:36 PM
Posted by Anil Sharma @ 8/13/2008 3:08:12 PM
Posted by jha manjit @ 8/14/2008 5:01:21 PM
Posted by Anil Sharma @ 8/14/2008 6:35:56 PM
Posted by Arjun Bagojikop @ 8/14/2008 6:27:19 PM