Jordi.Tolra
7th October 2008, 12:36
Hello,

I would like to skip the screen select device (ttstpsplopen) when printing a report. Of course, device and other print options will be specified in advance.

Does somebody know how can I do it?

thanks

Jordi

zardoz
7th October 2008, 13:50
You can use:

brp_open(report$, DEVICE_NAME, 0)

the 0 option assures no printer choice dialog appears.

bdittmar
7th October 2008, 13:52
Hello,

I would like to skip the screen select device (ttstpsplopen) when printing a report. Of course, device and other print options will be specified in advance.

Does somebody know how can I do it?

thanks

Jordi

Hello,
maybe this will help.

http://www.baanboard.com/baanboard/showthread.php?t=53798

Regards

Jordi.Tolra
7th October 2008, 14:20
Do you know if it is possible do it with open.report() ?

Jordi.Tolra
7th October 2008, 18:04
Thanks.

Brp.open() worked well.

By the way, I had to use brp.open(), not brp_open()

Jordi.Tolra
8th October 2008, 11:40
Good morning,

one more question, before using brp.* functions I was using open.report() and print.report(), where I could specify the language of the report to be used.

Is it possible specify the language using brp functions? How?

Or can I use the command print.record() if I use brp.open?

thanks & regards

Jordi

bdittmar
8th October 2008, 12:28
Good morning,

one more question, before using brp.* functions I was using open.report() and print.report(), where I could specify the language of the report to be used.

Is it possible specify the language using brp functions? How?

Or can I use the command print.record() if I use brp.open?

thanks & regards

Jordi

Refer to :

long brp.open.language( string rep_name(16), string lang, string device(14), long mode )

Description
This is the same as brp.open() in most respects, except that it includes a language argument. This enables you to specify a language for the report other than the default user language.

Return values
>0 an ID for the activated report
0 report could not be activated
-1 spooler could not be opened

Regards

Jordi.Tolra
13th October 2008, 10:08
Many thanks.

I tried and it worked.

Best Regards

Jordi