Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open word from application with variable text

Status
Not open for further replies.

mexoi

Programmer
Sep 16, 2002
3
NL
I have a problem...

I want to open a word document with variable text from a selfmade borland c++ application.
Does somebody know how to do this? Or maybe does someone have a link to an article where I can find information on this problem?
 
The Data Structures of word 2000 or later are treated as Confidential by Microsoft and therefore you will get a problem.
I think you can get it if you are a registrated Developer for Word, but that is difficult.

hnd
hasso55@yahoo.com

 
if Word documents are stored as .RTF files then you should be able to open then with the RichEdit component.
James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
Why not try to break the code first [noevil] hehe.. and then share with all others!! My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
 
Um... This is a little tacky, but what about 'typing' the text in after you've opened it with keybd_event?

Douglas JL

If it don't make you laugh, it ain't true.
 
I'll explain the situation further...

I've got a (access)database with all sorts of information. In the c++ application you can alter this information and now I'd like to open a word-document with this information (and also make standard-letters with addressinformation) so you can print and alter the word-document.
 
Mexoi, I think there is a simpler way.
Write a serial letter with word and import the data you need from the access data base, may be a real Table or a predefined query. Check this way: I think it would be easier to manage.

hnd
hasso55@yahoo.com

 
If I'm not mistaking, what mexoi is trying to do is load the text FROM his application TO Word? and not load a word document to his application...
and if I'm not mistaking, that's not such a hazzle?! Believe my self to have seen a snippet that did just that... (could've mixed it up with a .rtf document though; not sure) My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
 
If that is the case, he may want to look at ADO, too.
James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top