Jump to content
Sign in to follow this  
brokenjade4ever

Brainstorm question with Word - inserting text into pre-defined locations

Recommended Posts

brokenjade4ever

Hi, I have an idea that I would like to code but I have little clue on how to get it started.

I would really appreciate if anyone could give me some pointers on which functions to look at.

I looked through the word UDF but not able to find anything that remotely relate to it.

What I want to do is to insert certain texts (either phrases, word, or even paragraphs) into predefined bookmarks within a word document file.

Most likely I will use strings for such insertions.

But I don't know how to point to the destination of the bookmarks.

The purpose of this is to write reports that usually have lots of positions/content change relatively depending on the context.

So none of the pages / position within a page stay fixed.

I thought that having bookmarks would be able to define the relative insertion position better than define fixed insertion points.

Does anyone have any idea on how to achieve that or some other routes that might achieve the same thing?

Thanks in advance, any feedback will help greatly.

Share this post


Link to post
Share on other sites
big_daddy

I think I can help you with this, but I'm not sure I understand exactly what it is your trying to accomplish. Could you post an example document and describe in more detail your goal?

Share this post


Link to post
Share on other sites
joseLB

I think I can help you with this, but I'm not sure I understand exactly what it is your trying to accomplish. Could you post an example document and describe in more detail your goal?

Hi big_daddy, I have a very similar issue. I coud't see at word udf any functions that you could use to write text, give attributes like bold, italic, styles, or copy/paste parts of text and so on. In resume, to manipulate text, that is what we normally do with word.

For example, my specific problem is to do an Au3 program that based on queries, user's selections and answers goes creating documents. For that, it shoud copy parts from word previously edited pieces of text, also inserting text that user types, and so on. And also, being able to apply styles, bolds, etc. to some of these text.

Do you have any suggestion?

Jose

Share this post


Link to post
Share on other sites
big_daddy

I do understand the need for these abilities in the library, and you'll be glad to know I already have several of them in the works. I will go into more detail and probably ask for some input on the design of these type functions in the word.au3 topic.

Thanks,

Bob

Share this post


Link to post
Share on other sites
joseLB

... and you'll be glad to know I already have several of them in the works. I will go into more detail and probably ask for some input on the design of these type functions in the word.au3 topic.

Ok Bob, when time comes, let me know and I will try to suggest something

Jose

Share this post


Link to post
Share on other sites
Zoldex

Hello!

I'm very interested about this topic, since I'm in joseLB very similar situation

big daddy, I'm very happy to know you're working on it.

Hope you'll release something soon!

Share this post


Link to post
Share on other sites
big_daddy

Hi Zoldex,

I will be posting my task list for the next release today. I will be looking for feedback and suggestions on the purposed changes/enhancements/additions.

Thanks,

Bob

Share this post


Link to post
Share on other sites
big_daddy

Please provide your feedback and/or suggestions here.

Thanks,

Bob

Share this post


Link to post
Share on other sites
lazydory

I am too looking for functions to manipulate text styles and format in Word Document (including Word Document via email client such as Microsoft Outlook).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.