Go Back > Forum > Baan SIGs > AFS/DDC/OLE: Function servers

User login

Frontpage Sponsor


How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
200 - 500 GB
500 - 800 GB
800 - 1200 GB
1200 - 1500 GB
1500 - 2000 GB
> 2000 GB
Total votes: 68

Baanboard at LinkedIn

Reference Content

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 24th May 2018, 12:37
tmannais's Avatar
tmannais tmannais is offline
Senior Member
Join Date: Jul 2017
Posts: 175
tmannais is on a distinguished road
Baan: LN 10.5 - DB: MySQL - OS: Windows
[AFS] Print Preview


I am struggling to print preview in a session using AFS. This is the current code.

|stpapi.handle.subproc(session.code, session.code, "add"), "rtdsls140101000", "DOCMAN", error.msg)
if not isspace(error.msg) then 
	error.msg = "Cannot set report: " & error.msg
|stpapi.put.field(session.code, "spool.preview", "1")	| Set Print Preview
|, error.msg)
stpapi.form.command(session.code, 2, "tdsls1401m200", error.msg) | "tdsls1401m200" is the form command of the preview button inside print menu
if not isspace(error.msg) then 
	error.msg = "Cannot print preview: " & error.msg
What I have tried:
- use stpapi.handle.subproc() with and/or stpapi.form.command().
- use alone, which displays a little session that allow me to select preview to print but after that it gives no report.
- use stpapi.put.field(session.code, "spool.preview", "1") with the printing functions above.
- print with/without stpapi.handle.subproc().
- changing printing device ranging from "D", "PDF", "SSRS", and "DOCMAN"(this is the device I aimed to use).
- stpapi.handle.subproc() to "tdsls1401m200" with action "add", and "send" because "tdsls1401m200" is the session of the preview print.

Nothing works. I really need your help. I just want to print out to device "DOCMAN" from only print preview by using AFS.

Last edited by tmannais : 24th May 2018 at 12:38. Reason: formatting code
Reply With Quote

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
BwPrint: print preview and windows printer doesn't work Marcos Fernande Tools Administration & Installation 0 7th November 2013 13:21
3GL ASCII-Menu System for ERP-LN AndreasSchmitt Tools Development 7 5th June 2008 12:07
Print preview checkbox aguerra Tools Development 2 15th February 2008 12:16
Predefined variable for Print Preview vineetu1 Tools Development 1 28th November 2005 12:23
Print Preview nicklewe Tools Development 3 4th October 2002 20:32

All times are GMT +2. The time now is 09:31.

©2001-2018 - -