forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Sending Word a datasource with OLE

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Sat May 22, 2004 10:09 am    Post subject: Sending Word a datasource with OLE Reply with quote

Hi,

does somebody know how to control Word through OLE ?
I want to give word the data source for a form letter.

Thanks and have a nice weekend.

Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gerrit
Newbie


Joined: 14 May 2004
Posts: 24

PostPosted: Sat May 22, 2004 1:00 pm    Post subject: OLE Document Summary at Codescript Reply with quote

Hi...
Try thisone from Codescript.

It's for OLE2 so any Microsoft Office Products should work with it.
http://codescript.vdsworld.com/ --> OLE Document Summary

Onother way is to make it workong with the Window Send commandm, and send Keyboard shorcut's to Word.

Laughing , Gerrit

_________________
___________________
Gerrit Corsmeyer
Gerrit@corsmeyer.de
www.corsmeyer.de
___________________
Back to top
View user's profile Send private message Visit poster's website
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Sat May 22, 2004 1:09 pm    Post subject: Reply with quote

Hi,

thanks for your answer.
I already looked into it, but this dsu / dll is only for retrieving data from office files.
I found out that access controls word through ole for sending the data source (file location of the source).
I hoped to find dde commands for this, but I didn't found some.

Sending keystrokes is not good enough, because it has to work for different languages (german word, english word ...).

Bye, Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gerrit
Newbie


Joined: 14 May 2004
Posts: 24

PostPosted: Sat May 22, 2004 1:26 pm    Post subject: OLE Reply with quote

... I'm also German...
Laughing ...but CTRL+V and Tab should work on every language.
I used the Window Send command also to automate the ebay website site to add new artikels from a Mysql Database, and its working fine for swiss english, german and dutsh languages.
Never tried with word, but I don't think it's a big diff.

What kind of ddata you want to transfair?
Sorry to do this in english, but I think it's not allowed to do it in german here... Wink

Gerrit

_________________
___________________
Gerrit Corsmeyer
Gerrit@corsmeyer.de
www.corsmeyer.de
___________________
Back to top
View user's profile Send private message Visit poster's website
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Sat May 22, 2004 2:04 pm    Post subject: Reply with quote

oh, now I understand what you mean.

But I need to make real form letters (for ex. printing 50 personal letters) - so I make a word form letter and define my export-data-source. Now the word document will be copied to another computer, where the path to the data source is another one and my app should tell word where the source is.

Isn't there a solution for this ?

p.s. Nice to have another german on this board Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gerrit
Newbie


Joined: 14 May 2004
Posts: 24

PostPosted: Sat May 22, 2004 2:50 pm    Post subject: OLE Reply with quote

.... I hang a bit on Word... don't knew haow to do a series of letters...
Never used this func... Sad

But can't you use UMC Filenames to Point the Database?

I would help myself to process everything in VDS and then Copy paste it to Word..... but this insn't a proper soluten..

I have no eye deer .... Sorry...
But may somewone else have a better Idea.

Gerrit Embarassed

_________________
___________________
Gerrit Corsmeyer
Gerrit@corsmeyer.de
www.corsmeyer.de
___________________
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat May 22, 2004 2:51 pm    Post subject: Re: OLE Reply with quote

gerrit wrote:
Sorry to do this in english, but I think it's not allowed to do it in german here... Wink


You could use "Non-English Help" forum for this, if it is any of your use... Smile

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Sat May 22, 2004 5:26 pm    Post subject: Reply with quote

What are UMC Filenames ?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gerrit
Newbie


Joined: 14 May 2004
Posts: 24

PostPosted: Sat May 22, 2004 5:54 pm    Post subject: OLE Reply with quote

Like \\MyMashineOrIP\C\Mydocuments\MyDatabase.mdb

Don't knew for what UMC stands for...

Wink, Gerrit

_________________
___________________
Gerrit Corsmeyer
Gerrit@corsmeyer.de
www.corsmeyer.de
___________________
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat May 22, 2004 7:31 pm    Post subject: Reply with quote

I hate to be technical but actually they're called UNC Paths Smile
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
DavidR
Contributor
Contributor


Joined: 05 Aug 2003
Posts: 83
Location: Bethel Pennsylvania U.S.A.

PostPosted: Mon May 24, 2004 9:49 am    Post subject: Re: OLE Reply with quote

gerrit wrote:
Like \\MyMashineOrIP\C\Mydocuments\MyDatabase.mdb

Don't knew for what UMC stands for...

Wink, Gerrit

Universal Naming Convention
Back to top
View user's profile Send private message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Mon May 24, 2004 10:02 am    Post subject: Reply with quote

but this would only work if the file is shared and accessable from the other computer. I am searching for a solution to tell word that the source file is located on C:\Windows\Temp, .... for example.

I thought this is possible through ole or dde, but I cannot find any usefull documentation.

Bye, Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Wed Jun 02, 2004 7:21 am    Post subject: Reply with quote

Have a look at the VDSDB.DLL component from the VDSDLL available here. It will allow you to create ODBC System DSNs for your word document to access data through...
_________________
Andrew GRAY
If you don't know I am looking for work, I won't get the job.

andrewrcgray.com
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group