Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: jha manjit
  Where is jha manjit?
 delhi
 India
 jha manjit
 To: Arjun Bagojikop
  Where is Arjun Bagojikop?
 Sangli
 India
 Arjun Bagojikop
 Tags
Subject: RE: printer
Thread ID: 187839 Message ID: 189125 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Reports and Printers
Date: Wednesday, August 13, 2008 1:19:36 PM         
   


> Sure!
>
>
> create text file and
>
> DECLARE INTEGER CopyFile IN KERNEL32.DLL ;
> STRING @SourceFileName, ;
> STRING @DestFileName, ;
> INTEGER bFailIfExists
>
> IF CopyFile('C:\untitled.txt','\\MM\weplq5400',0) # 0 && get shared printer
> MESSAGEBOX('Ok')
> * It was copied
> ELSE
> MESSAGEBOX('No')
> ENDIF

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

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