Receive method in VB

I have a VB program that receive a document from the repository and refresh it for the user,but since January 1st, the program is unable to receive from the repository(if I do it within BO, the receiving is successful) Is there somebody who uses the method Receive whitin a script?, if yes can you check it for me?
Thanks…
Hamid


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

Hamid,

I use the following BO-script in version 4.1.4 and everything is working fine:

Function RetrieveDocument(sDocument As String) As Integer
Dim strMsg As String
RetrieveDocument = 0
On Error Resume next
Application.Documents.Receive(sDocument)
if Err then
RetrieveDocument = 32000
Exit Function
end if
end Function

Mathias

From: Hamid Chefchaouni[SMTP:hchefcha@RICHTER.NET]

I have a VB program that receive a document from the repository and refresh
it for the user,but since January 1st, the program is unable to receive from
the repository(if I do it within BO, the receiving is successful) Is there somebody who uses the method Receive whitin a script?, if yes can you check it for me?
Thanks…
Hamid


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

The code I use daily on BO 4.1.5 is:

If RetrieveDocument(sDrvDocName, DOC_DOMAIN) = False Then
MsgBox "An error occurred retrieving " & sDrvDocName & “.”, vbCritical
CloseApplication
End If

Where sDrvDocName is a string containing the Document name and DOC_NAME is the name of the Document domain.

— Hamid Chefchaouni hchefcha@RICHTER.NET wrote:

I have a VB program that receive a document from the repository and refresh
it for the user,but since January 1st, the program is unable to receive from
the repository(if I do it within BO, the receiving is successful)
Is there somebody who uses the method Receive whitin a script?, if yes can
you check it for me?
Thanks…
Hamid

=====
Philip Biancucci
Data Warehouse Project Leader
LINC Systems, Corp.
W: 860/715-2053
VM: 781/890-1003 x 7404
EM: pbiancucci@lincsys.com
pbiancucci@yahoo.com
__________________________________________________ Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com


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