Solved

Saving to DOC format

Posted on 2000-02-21
4
261 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 31

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Suggested Courses

739 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