batmush
31st January 2005, 17:47
Hi guys,
Does anyone know why there is no default device in session tisfc0410m000?
User has default device on every session but not on this one.
Thanks.

cherokee
31st January 2005, 17:51
The default print device is defined at user level not by session on Mantain Device Preference List by User (ttaad3106m000) .

Carlos.

batmush
31st January 2005, 18:01
I checked many sessions - only this does not have default device.
Thanks

mark_h
31st January 2005, 18:11
On my system when I set a device device for my user id using Mantain Device Preference List by User (ttaad3106m000) like Cherokee suggests I get a default device for this session. I recommend not using ttstpsplopen to set default devices - it seems this method tends to become corrupt and causes printing problems down the road. Did you set your device preference using ttaad3106m000?

Mark

batmush
31st January 2005, 18:17
I use ttaad3106m000 only.

batmush
31st January 2005, 18:20
But no success.

mark_h
31st January 2005, 18:59
Might not make a difference, but try deleting all user defaults for ttstpsplopen and for the session tisfc0410m000.

Mark

NPRao
31st January 2005, 20:20
I checked the source code in our Baan Version. There is a call to -

choice.cont.process: |#VTD.sn
on.choice:
execute(print.data) |#VTD.en

choice.print.data:
before.choice:
if prse.b = tisfc.osr1.order then
reportgrp = 1
endif
if prse.b = tisfc.osr1.project then
reportgrp = 2
endif
if prse.b = tisfc.osr1.start.date then
reportgrp = 3
endif

on.choice:
if not tccom.dll0010.open.report(1,"",1) then
choice.again()
endif
main.print.process()

after.choice:
tccom.dll0010.close.reports(1)


and -


function extern domain tcbool tccom.dll0010.open.report(...)
{
DllUsage
Expl: - It is used for opening reports
- As many as 10 reports can beopened which is the max. limit
Pre : - No conditions are required
Post: - Returns a value true if a report is successfully opened
Input : The function accepts variable no. of arguments
A max. of 5 arguments can be passed to the function. The
arguments are described below
i.report.number -> Report Number to be opened
i.sp.device -> Name of the spooling device
i.open.mode -> The mode in which the report is
opened
i.curr.language -> Language in which the report is
opened
i.curr.group -> The group to which the report belongs
Output : Returns a boolean value true if a report is opened
EndDllUsage

The device parameter is set to blank and this function sends parameters to -
brp.open.language() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_reports_brp_open_language)

batmush
31st January 2005, 20:45
What is that mean?

mark_h
31st January 2005, 20:52
Like NPR mentioned I have run into at least one session that always reset the printer. I can not remember what that session was. All I know is that on our version of 4c4 this session gets the correct default printer when I run it. It just may be your version of 4c4.

Mark

batmush
31st January 2005, 21:46
Deleted user, deleted permissions, etc.
This session do not want to have default device.
Thanks.