GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 19-Jan-2007, 00:38
asenthil asenthil is offline
New Member
 
Join Date: Dec 2006
Posts: 24
asenthil is on a distinguished road

How to save an existing file into a new file using "save as" method?


Hai to all,

if i'm having a file named as "tab.doc" which is a microsoft word document file ...

i want to save it as another file as "tab1.doc" by using

"save as" method....

Manually we can do by the following method...

First open the file "tab.doc" in msword...
then click the File->Save As button for saving the contents of "tab.doc" into
a new file name such as "tab1.doc"

Now i'm trying to automate this process..

i tried CopyFile() method... itzz working nicely.. but this CopyFile() is not supported for my project...

only "save as" method is supporting..

Is there any "save as" method available for doing this process in VC++....

Can any one plzz help me?

thanks in advance..
senthil..
  #2  
Old 23-Jan-2007, 09:27
dhawan dhawan is offline
New Member
 
Join Date: Jan 2007
Posts: 25
dhawan is on a distinguished road

Re: How to save an existing file into a new file using "save as" method?


Hi,
Do you need "Save As" Dialog ???

Try CFileDialog ...

regards
Nitin
  #3  
Old 23-Jan-2007, 21:39
asenthil asenthil is offline
New Member
 
Join Date: Dec 2006
Posts: 24
asenthil is on a distinguished road

Re: How to save an existing file into a new file using "save as" method?


hai dhawan,

thanks for ur reply...

i want to do this process without using the dialog's...

what i want is.... when i run the program, in the run time...

automatically the contents of the existing file like "tab.doc" will be saved into

another new file likely "tab1.doc"...

Especially i want do it without using dialog's or windows...

how shall i do this...

Can u plzz give me an idea?

thanks..
senthil.
  #4  
Old 26-Jan-2007, 10:13
dhawan dhawan is offline
New Member
 
Join Date: Jan 2007
Posts: 25
dhawan is on a distinguished road

Re: How to save an existing file into a new file using "save as" method?


hi,
You said that "CopyFile" is not supported in your project .
Then can you please provide some details about the technology you are/want to use in your project.

regards
dhawan
 
 

Recent GIDBlogCompress Your Web Site by gidnetwork

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Airport Log program using 3D linked List : problem reading from file batrsau C Programming Language 11 29-Feb-2008 07:44
How to save an existing file into a new file using "save as" method? asenthil C++ Forum 0 09-Jan-2007 21:19
CD burner wont burn!! robertli55 Computer Hardware Forum 1 18-Jun-2004 10:53
Yet another CD burner problem: Lite-On LSC-24082K Erwin Computer Hardware Forum 1 22-May-2004 11:28
[Tutorial] Standard I/O aaroncohn C Programming Language 20 27-Feb-2004 21:07

Network Sites: GIDNetwork · GIDApp · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 12:50.


vBulletin, Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.