Hi rachidb,
Thanks a lot for your response. Now I think I am slowly getting a hold of vbscript. I went few more posts and tried to combine the knowledge from all of them to get my script working. However, I am stuck at one point now…
Please have a look at the below code, which is very straight forward and I expect it to work.
dim appint
dim objDoc
Set appint = CreateObject("BusinessObjects.Application")
appint.Visible = False
appint.Interactive = False
appint.LoginAs "Administrator", "", FALSE
Set objDoc = appint.Documents.OpenFromEnterprise("Daily_Activity_Report", "Development", boFolder)
objDoc.Refresh
objDoc.SaveAs ("C:\Daily_Activity_Report.pdf")
objDoc.Close
appint.Interactive = True
appint.Quit
Set appint = Nothing
Set objDoc = Nothing
However, that code does not successfully execute the LoginAs line and fails 
I am not 100% sure as to what/how many parameters does the LoginAs require, so what I have written above is a copy+paste from other posts.
Please note that we are on XI R2 SP2.
I have tried a lot of other parameters and changed the sequence of the paramertes etc. But nothing seems to work.
Some of the other things that I have tried are…
appint.LoginAs “Administrator”, “”
appint.LoginAs “Administrator”, “”, “Enterprise”
appint.LoginAs “Administrator”, “”, “SERVERNAME”, “Enterprise”
appint.LoginAs “Administrator”, “”, “FULL.SERVER.NAME.COM”, “Enterprise”
appint.LoginAs “SERVERNAME”, “Administrator”, “”, “Enterprise”
appint.LoginAs “FULL.SERVER.NAME.COM”, “Administrator”, “”, “Enterprise”
each time I get an error, which says,
Script: C:\test4.vbs
Line: 8
Char: 1
Error: LoginAs failed
Code: 800A0132
Source: Desktop Intelligence
Please could you (or anyone else) help?!
Thanks in advance,
Buddy.
Buddy
(BOB member since 2006-08-04)