Click here to Skip to main content
15,893,564 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I am trying to make a copy of excel file using file.copy(path1,path2).

It's copying but making a blank file.
Data is not getting copied.

File.Copy(path, path2)

Can anyone help me on this
Thanks in advance.
Posted
Updated 26-Jan-12 22:15pm
v3
Comments
Dalek Dave 27-Jan-12 4:14am    
Edited for Readability and to remove spurious code block.
Sumit Memane 27-Jan-12 4:22am    
thanks

1 solution

This[^] will give you all you need.
 
Share this answer
 
Comments
Sumit Memane 27-Jan-12 4:20am    
But i have to copy full excel file from one place to aonther
Dalek Dave 27-Jan-12 4:36am    
So?

This copies the worksheet, you just need to save the second copy.
Your question was somewhat ambiguous, I don't feel I deserved the downvote but hey ho if that is how you feel so be it.
Immaculate Perception 27-Jan-12 4:37am    
I don't think the OP explained it very well either, have an upvote to compensate.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900