Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
18%
200 - 500 GB
18%
500 - 800 GB
6%
800 - 1200 GB
6%
1200 - 1500 GB
12%
1500 - 2000 GB
18%
> 2000 GB
24%
Total votes: 17

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 4th October 2002, 08:56
nicklewe's Avatar
nicklewe nicklewe is offline
Member
 
Join Date: May 2002
Location: Germany
Posts: 42
nicklewe is on a distinguished road
Print Preview

Hello,

does anybody know if you can preselect the print preview option?
I am using the spool.device and spool functions to automatically print a report directly to a specified printer, but i would like to automatically select the preview option.


thanks in advance for any help,

Nick LeWe
Reply With Quote
Sponsored Links
  #2  
Old 4th October 2002, 11:06
zacharyg's Avatar
zacharyg zacharyg is offline
Member
 
Join Date: Sep 2002
Posts: 62
zacharyg is on a distinguished road
Baan: 4 - DB: 4 - OS: 4
Hello Nick,

I'm also not sure, but the variable to use is "spool.preview". If I were attempting this, I would set spool.preview prior to invoking spool.open or brp.open.

Since you've already coded some lines, you should run to see if it results in the desired result.

Good Luck!
Reply With Quote
  #3  
Old 4th October 2002, 13:46
nicklewe's Avatar
nicklewe nicklewe is offline
Member
 
Join Date: May 2002
Location: Germany
Posts: 42
nicklewe is on a distinguished road
Talking print preview

Hello!

Yes that works great...
Code:
spool.report="rtTheReportName"
spool.device="W"
spool.preview=true
reportnr = brp.open(spool.report, spool.device, 0)
	
if reportnr>0 then 
     |...and now collect the data and stuff
               
     brp.ready(reportnr)
     brp.close(reportnr)
endif
thanks for that

Nick
Reply With Quote
  #4  
Old 4th October 2002, 20:32
NPRao's Avatar
NPRao NPRao is offline
Guru
 
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,066
NPRao will become famous soon enough
Baan: Baan 4-5,5.2(Reger),LN-6.1,Infor LN-10.x - DB: Oracle,MS-SQL - OS: HPUX, Linux, Windows
zacharyg,

Is spool.preview=true an undocumented predefined variable, see http://www.baanboard.com/programmers_manual_baanerp_help_functions_spooling_overview_and_synopsis[/WIKI ? I couldnt find it in the BaaN help manual.

I think the preview option works only when you choose printers in the ttstpsplopen session.
__________________
The art of perfection does not lie in doing extraordinary things but, doing ordinary things extraordinarily well. [-N. Prashanth Rao]
How To Ask Questions The Smart Way,BaaNBoard,NPRao
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Print Out report as same as Print Display Screen (Windows 2k Ad Server) nopadon Tools Administration & Installation 1 9th November 2003 14:31
Block Print Preview in ttstpsplopen sbakshi Tools Development 0 13th February 2003 15:20


All times are GMT +2. The time now is 07:58.


©2001-2018 - Baanboard.com - Baanforums.com