Doc Agent question

In an effort to reduce maintenance on Doc Agent, I put together a script that will pull a copy of the current document from the repository, then refresh it. I am hoping to use this to avoid the need to delete and re-schedule a report in Doc Agent each time the report code changes.

The script works fine when I execute it in Business Objects proper, but when I associate it with a report and try to execute it through Doc Agent, it fails trying to receive the document from the repository .

Any explanations or other suggestions? Thanks in advance!

The script follows:

Sub main
dim doc as BODocument
dim docname as string

set doc = Application.Documents.Item(1)
docname = Application.Documents.Item(1).Name doc.Close

Application.ExchangeRepository = “document” Application.Documents.Receive(docname)
set doc = Application.Documents.Open(docname) doc.Refresh
End Sub

Dick McConnell
Polymerland IMO
e-mail: richard.mcconnell@polymerland.com


Listserv Archives (BOB member since 2002-06-25)

I received no replies on this before, but having seen a few more people with the same desire, I thought I would run it by people again. Any ideas?

From: McConnell, Richard S
(GEP)[SMTP:Richard.McConnell@GEPEX.GE.COM] Sent: Wednesday, August 26, 1998 4:41 PM

In an effort to reduce maintenance on Doc Agent, I put together a script that will pull a copy of the current document from the repository, then refresh it. I am hoping to use this to avoid the need to delete and re-schedule a report in Doc Agent each time the report code changes.

The script works fine when I execute it in Business Objects proper, but when I associate it with a report and try to execute it through Doc Agent, it
fails trying to receive the document from the repository .

Any explanations or other suggestions? Thanks in advance!

The script follows:

Sub main
dim doc as BODocument
dim docname as string

set doc = Application.Documents.Item(1) docname = Application.Documents.Item(1).Name doc.Close

Application.ExchangeRepository = “document” Application.Documents.Receive(docname)
set doc = Application.Documents.Open(docname) doc.Refresh
End Sub

Dick McConnell
Polymerland IMO
e-mail: richard.mcconnell@polymerland.com

For old 3.1 info: Penn: Page not found
Search: Mail to listserv@listserv.aol.com, ‘search a_phrase in BUSOB-L’
Unsubscribe: Mail to listserv@listserv.aol.com, ‘unsubscribe BUSOB-L’


Listserv Archives (BOB member since 2002-06-25)

Hi,

I could be completely wrong, but I’m fairly sure all you need to do is put the script onto the server too… perhaps just the ‘export script’ command will put it in the correct place?

From: McConnell, Richard S
(GEP)[SMTP:Richard.McConnell@GEPEX.GE.COM] Sent: 03 October 1998 08:22

I received no replies on this before, but having seen a few more people with
the same desire, I thought I would run it by people again. Any ideas?

From: McConnell, Richard S
(GEP)[SMTP:Richard.McConnell@GEPEX.GE.COM] Sent: Wednesday, August 26, 1998 4:41 PM

In an effort to reduce maintenance on Doc Agent, I put together a
script
that will pull a copy of the current document from the repository,
then
refresh it. I am hoping to use this to avoid the need to delete and re-schedule a report in Doc Agent each time the report code changes.

The script works fine when I execute it in Business Objects
proper, but
when I associate it with a report and try to execute it through Doc
Agent,
it
fails trying to receive the document from the repository .

Any explanations or other suggestions? Thanks in advance!

The script follows:

Sub main
dim doc as BODocument
dim docname as string

set doc = Application.Documents.Item(1) docname = Application.Documents.Item(1).Name doc.Close

Application.ExchangeRepository = “document” Application.Documents.Receive(docname)
set doc = Application.Documents.Open(docname) doc.Refresh
End Sub

Dick McConnell
Polymerland IMO
e-mail: richard.mcconnell@polymerland.com

Pls report bounces in response to postings to BUSOB-L-Request@listserv.aol.com
For old 3.1 info:
Penn: Page not found
Search: Mail to listserv@listserv.aol.com, ‘search a_phrase in BUSOB-L’
Unsubscribe: Mail to listserv@listserv.aol.com, ‘unsubscribe
BUSOB-L’

Pls report bounces in response to postings to BUSOB-L-Request@listserv.aol.com
Web archives (9am-5pm ET only): listserv.aol.com/archives/busob-l.html
OR search: Mail to listserv@listserv.aol.com, ‘search a_phrase in BUSOB-L’
Unsubscribe: Mail to listserv@listserv.aol.com, ‘unsubscribe BUSOB-L’


Listserv Archives (BOB member since 2002-06-25)