printing with DAS

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

Tel. (07132)385-263
Fax (07132)385-243


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

Hello Alexander,

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


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

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”)

End Sub

laurenf@bellatlantic.net

“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

Tel. (07132)385-263
Fax (07132)385-243
http://www.dsb.net

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)

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 ???


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