Baanboard.com

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

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

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

Hi,

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

Code:
|stpapi.handle.subproc(session.code, session.code, "add")
stpapi.set.report(session.code, "rtdsls140101000", "DOCMAN", error.msg)
if not isspace(error.msg) then 
	error.msg = "Cannot set report: " & error.msg
	stpapi.end.session(session.code)
	return(error.msg)
endif
|stpapi.put.field(session.code, "spool.preview", "1")	| Set Print Preview
|stpapi.print.report(session.code, 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
	stpapi.end.session(session.code)
	return(error.msg)
endif
stpapi.end.session(session.code)
return(error.msg)
What I have tried:
- use stpapi.handle.subproc() with stpapi.print.report() and/or stpapi.form.command().
- use stpapi.print.report() 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 14:09.


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