Solved

Saving to DOC format

Posted on 2000-02-21
4
225 Views
Last Modified: 2013-11-20

I am trying to get some data into .doc file format.  The data I have is in a C++ program, and I am hoping that MFC or something can be used to put my data into MS Word format.  How can this be done?

0
Comment
Question by:AMD_MAN
4 Comments
 
LVL 30

Accepted Solution

by:
Zoppo earned 100 total points
ID: 2542591
Hi AMD_MAN,

take a look at http://www.wotsit.org/cgi-bin/search.cgi?doc, there you can find some links to info about MS-Word's binary file formats. MFC has no built-in support for MS-Office files at all.

You could also use MS-Word automation insterface to open an instance of word and passing data to it, but this only runs on systems with word installed...

hope that helps,

ZOPPO
0
 
LVL 1

Expert Comment

by:RAVID
ID: 2542594
Hi,

U can use CFiledialog and specify the filters(the type of extension files u want to save or open).
CFileDialog dlg(TRUE,"rft","*.rft",OFN_OVERWRITEPROMPT|OFN_FILEMUSTEXIST,szFilter1,NULL);

In place of szFilter1 u can specify the extensions like

szFilter1 = "Text Files (*.doc)|*.doc";

and say dlg.DoModal();

Hope this helps U

Cheers Yo
0
 
LVL 1

Expert Comment

by:jhattingh
ID: 2543147
0
 

Author Comment

by:AMD_MAN
ID: 2558951

I ended up using MS-Word automation for now.  Thanks for sending me that way!
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video discusses moving either the default database or any database to a new volume.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now