Baanboard.com

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

Retirement Notice

Baanboard is shutting down on 31-dec-2023. See: http://www.baanboard.com/baanboard/showthread.php?t=76043


User login

Frontpage Sponsor

Main

Poll
What do you expect from your SI Implementation partner for the success of ERP implementation.
Bring best practices - Not to offer more CR's Leveraging standard functions
20%
Need more honesty to work with the Users until their processes are fully mapped & Users are trained
40%
Focus on process automation/ integrations/ Real time data/ BI analytics
13%
Stick to basics
27%
Total votes: 15

Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 20th September 2023, 06:56
tmannais's Avatar
tmannais tmannais is offline
Senior Member
 
Join Date: Jul 2017
Location: Bangkok, Thailand
Posts: 293
tmannais is on a distinguished road
Baan: LN 10.5, 10.6, 10.7 - DB: MSSQL - OS: Windows
How to reprint a report from tmp file?
Baan: Infor ERP 10.5
C/S: Server

A report was printed via a session that cannot be done again. The user didn't save the report file. So, they want to have that report file.
We tried to search for tmp files in the server to see if we could get the report that way, but no luck. The tmp files cannot be opened even though we changed the extension to .pdf.
We even tried renamed the extension of the tmp file to .bpf and opened it with bwprint, but only get the xml-like codes as text as a result.
How to reprint a report from tmp file?
or, better, is there any other way to achieve this task?

Last edited by tmannais : 20th September 2023 at 07:37. Reason: changed format typo
Reply With Quote
  #2  
Old 20th September 2023, 14:12
andreas.toepper andreas.toepper is offline
Senior Member
 
Join Date: Jun 2004
Posts: 262
andreas.toepper is on a distinguished road
Baan: Baan4, LN6.1 - DB: MSSQL - OS: Linux&Windows
I guess you tried to reprint it using the Device Queue (ttaad3520m000) and it didn't work?
It may be, that the setup of the printer is not keeping the output. (This is our setup of the display device in LN 10.7. It generated an PDF, but this will be deleted right after printing is completed).

All I can think of, if you have the tmp file and it does contain readable characters, is trying to convert it with an editor (I use Ultraedit, others use Notepad+). So, you will be able to restore most of the printed information, but not the PDF itself.
Reply With Quote
  #3  
Old 20th September 2023, 18:22
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 7,819
mark_h will become famous soon enoughmark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
In 4c4 when we setup users we had a delete delay time for the users. What that did was how long to keep the tmp files before they were deleted. Now as Andreas mentioned you can use the device queue to try to re-print the report - but if I recall on our system after about 2 days you could not reprint from the device queue (could have been 1 day).
__________________
Mark

GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.

Shared Solutions for Baan systems provided free by Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote
  #4  
Old 21st September 2023, 04:44
tmannais's Avatar
tmannais tmannais is offline
Senior Member
 
Join Date: Jul 2017
Location: Bangkok, Thailand
Posts: 293
tmannais is on a distinguished road
Baan: LN 10.5, 10.6, 10.7 - DB: MSSQL - OS: Windows
Thanks @andreas.toepper and @mark_h.
I did try the Device Queue (ttaad3520m000) but there is no record for that report to reprint. Maybe it is deleted as you suggested.
Is there any other way?
Reply With Quote
  #5  
Old 21st September 2023, 10:24
andreas.toepper andreas.toepper is offline
Senior Member
 
Join Date: Jun 2004
Posts: 262
andreas.toepper is on a distinguished road
Baan: Baan4, LN6.1 - DB: MSSQL - OS: Linux&Windows
It may depend on the setup of the printer. If you are using DOM (Document Output Management) there may be a directory in BSE/tmp, which holds copies of generated output (it may be call "outbox"). But I think this is related to creating mails from LN with DOM.
Maybe the user downloaded the PDF on his client, then you may want to check the download list of the used browser. I don't think you may find something in the browser cache.
Reply With Quote
  #6  
Old 23rd September 2023, 22:38
OmeLuuk's Avatar
OmeLuuk OmeLuuk is offline
Guru
 
Join Date: Mar 2002
Location: NetherBelgium
Posts: 1,376
OmeLuuk will become famous soon enough
Baan: Infor LN 6.1 10.2.1 > 10.7 - DB: MS SQL2017 - OS: VM WindowsServer2016
Quote:
Originally Posted by tmannais View Post
A report was printed via a session that cannot be done again. The user didn't save the report file. So, they want to have that report file.
We tried to search for tmp files in the server to see if we could get the report that way, but no luck. The tmp files cannot be opened even though we changed the extension to .pdf.
We even tried renamed the extension of the tmp file to .bpf and opened it with bwprint, but only get the xml-like codes as text as a result.
How to reprint a report from tmp file?
or, better, is there any other way to achieve this task?
tmp files in the $BSE/tmp are "short lived" (depending on sysadmin setup effort) but normally (depeding on device queue) if you have the correct file (grep on content keywords) renaming the file to tmp*.bpf and opening the file in bwprint could work.
__________________

Also read Luke 24:4-8

After that you can find many answers on Infor, LN, BaanIV, BaanV, InforLN and ION and even some questions asked here on baanboard.com
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
Programming Question mr_suleyman Tools Development 37 11th November 2016 09:14
Report reprint times idreaming2005 Tools Development 3 25th August 2009 09:52
Creating file name inside the report baanguy2 Tools Development 4 30th January 2007 19:35
seq.open berthe Miscellaneous 4 12th May 2005 11:20


All times are GMT +2. The time now is 01:18.


©2001-2023 - Baanboard.com - Baanforums.com