PC Review


Reply
Thread Tools Rate Thread

Accessing "Publish It With Word" through Code

 
 
JohnV
Guest
Posts: n/a
 
      10th Sep 2003
When you have a report open there is an icon on the tool
bar that is "Publish it with Word". Is there a way to
programmtically launch the report in word instead of
having to have the user click the icon?

Thanks,
JohnV
 
Reply With Quote
 
 
 
 
TC
Guest
Posts: n/a
 
      11th Sep 2003
See if there is a RunCommand constant for it (I don't have Access here to
check).

HTH,
TC


"JohnV" <(E-Mail Removed)> wrote in message
news:028e01c377c4$4bfc7f00$(E-Mail Removed)...
> When you have a report open there is an icon on the tool
> bar that is "Publish it with Word". Is there a way to
> programmtically launch the report in word instead of
> having to have the user click the icon?
>
> Thanks,
> JohnV



 
Reply With Quote
 
JohnV
Guest
Posts: n/a
 
      12th Sep 2003
Thanks for the tip. Here is what I found:

DoCmd.OutputTo ObjectType:=acOutputReport, _
ObjectName:=strACReport, _
OutputFormat:=acFormatRTF, _
OutputFile:=strRTFFile, _
AutoStart:=True

The problem I was having with not launching Word was that
I did not have my reference for "Microsoft Office 9.0
Object Library" selected. It seemed as if the report would
run but nothing would happpen. Now Word launches.

JohnV

>-----Original Message-----
>See if there is a RunCommand constant for it (I don't

have Access here to
>check).
>
>HTH,
>TC
>
>
>"JohnV" <(E-Mail Removed)> wrote in message
>news:028e01c377c4$4bfc7f00$(E-Mail Removed)...
>> When you have a report open there is an icon on the tool
>> bar that is "Publish it with Word". Is there a way to
>> programmtically launch the report in word instead of
>> having to have the user click the icon?
>>
>> Thanks,
>> JohnV

>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Field Names: "LongName", "ShortName", "Code", "Description","Comments" PeteCresswell Microsoft Access 2 25th Feb 2009 11:41 PM
Asking to "open" or "save" when accessing Word attachments donna Microsoft Outlook 1 9th Nov 2007 04:05 AM
Is "www2" a sort of reserved word for path of web projects ? ("Publish website" failing without errors) craigkenisston@hotmail.com Microsoft ASP .NET 1 19th Jan 2007 09:11 PM
Access "Publish It with Word" creating varying line breaks =?Utf-8?B?S2F0aHk=?= Microsoft Access External Data 3 7th Mar 2006 06:44 AM
Truncated Text converting using "Publish with Word" in Access DB =?Utf-8?B?dHdvMnRhbmRlbW5j?= Microsoft Word Document Management 2 28th Oct 2005 10:47 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:09 PM.