Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Office Automation
Message
From
09/10/2003 06:31:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
08/10/2003 13:23:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00836175
Message ID:
00836696
Views:
16
>That is kind of what I figured it was for. Interesting, how did you pick up on all the syntax for automating office? I got the Automation for Office book and pretty much using it for reference only until I actually get to wanting to build documents and such from stratch, but I can't find code in the samples to do some of the simple things like you just described as saved = .t. makes it think it has already been saved and does not prompt you if you want to. I was curious on if I wanted to make the result of the merged document readonly as to how I would do that because I know evetually they are going to want me to have certain things be read only and I can not even find simple code on how to do that. I could not even find that in Marcia's document. Maybe I am getting blind with my old age, who knows?

:) Just for I've worked a lot with office automation for real world apps. I've posted numerous times how to get code using macro recording, how to convert it and what you should take care of, positional vs named arguments etc. Unfortunately I'm not a PUTM anymore to find those references :(
Probably I could write a book too but knowing Marcia, Tamar and Della I think what they've done is already superior to what I could do :)
It's hard to cover anything you might want and what you think is simple might not be that simple or simply missed from the authors or you couldn't locate it in book :)
For readonly check Open() - it has ReadOnly, Password and WritePassword parameters. For setting passwords check Saveas()
PS: If you didn't do that on initial install install VBA help for office. Using VbaWrdxx.chm (hlp) file you could get object model and full syntax of commands.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform