I have a problem to choose a printer on DAS. I wrote a skript, but this skript only works when i start it by hand. Has anybody an idea to slove the problem ???
sub main
dim druck as BOReport
dim app as BOApplication
set app = Application
set druck = ActiveReport
druck.PrintOut"\BECKGRUPPE\PQ_SUS1"
end sub
Mit freundlichen Gruessen
DSB, Daten-Service Beck GmbH
Alexander Zipf
We use the following script to print to a specific printer on DAS :
sub main
dim pr as string
pr=“\NTBRUCO04PRI\prbrucoh2r03”
ActiveDocument.PrintOut(pr)
end sub
Hope this helps,
Thierry Vandenplas
Decision Support Engineer
DHL International N.V.
“Zipf, Alexander, DSB” wrote:
Hi,
I have a problem to choose a printer on DAS. I wrote a skript, but this skript only works when i start it by hand. Has anybody an idea to slove the problem ???
sub main
dim druck as BOReport
dim app as BOApplication
set app = Application
set druck = ActiveReport
druck.PrintOut"\BECKGRUPPE\PQ_SUS1"
end sub
Mit freundlichen Gruessen
DSB, Daten-Service Beck GmbH
Alexander Zipf
Hi Alexander,
here is the script in english to send a document to refresh, then print to whatever printer. hope this helps.
You cannot control the print options within the Console. The print command goes to the default printer on the DAS. In order to print to network printers, you have to use scripting (until hopefully this is built into DAS!). Use the PrintOut command:
Sub Main()
Dim doc as BODocument
set doc = Applciation.Documents.Item(1)
doc.Refresh
doc.PrintOut(“\server\printershare”)
I have a problem to choose a printer on DAS. I wrote a skript, but this skript only works when i start it by hand. Has anybody an idea to slove the problem ???
sub main
dim druck as BOReport
dim app as BOApplication
set app = Application
set druck = ActiveReport
druck.PrintOut"\BECKGRUPPE\PQ_SUS1"
end sub
Mit freundlichen Gruessen
DSB, Daten-Service Beck GmbH
Alexander Zipf
If you are running the DAS as a service, then you must make sure that the user running the service has the permission to get at the printer on the remote machine. Using a named user to run the service in the services control panel may help, if that’s the issue.
Tom Tobin
Program Manager
Web Products, Business Objects
I have a problem to choose a printer on DAS. I wrote a skript, but this skript only works when i start it by hand. Has anybody an idea to slove the problem ???