Baanboard.com

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

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
37%
Installation Wizard into new VRC
39%
Manual into existing VRC
3%
Manual into new VRC
21%
Total votes: 38

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 14th December 2001, 17:59
Eddie Monster's Avatar
Eddie Monster Eddie Monster is offline
Guru
 
Join Date: Nov 2001
Location: Pittsburgh, PA, USA
Posts: 346
Eddie Monster is on a distinguished road
Baan: Baan IVc4 - DB: MS SQL Server 2008 R2 - OS: MS Server 2008 R2
Regarding ~Vamsi's solution...

Go here to see Vamsi's code.

What do the following lines of code do?

server2client(tmp.file1, "c:\temp\_.vamsi1", 1)
server2client(tmp.file2, "c:\temp\_.vamsi2", 1)
server2client(tmp.file, "c:\temp\" & local.path(1;(len(local.path)-3))&"ps",1)

ret = app_start("d:\ghostscript\gs7.03\bin\gswin32c.exe @_.vamsi1 @_.vamsi2", "c:\temp\","","","")

Last edited by mark_h : 14th December 2001 at 22:32.
Reply With Quote
  #2  
Old 14th December 2001, 20:10
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,935
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Quote:
server2client(tmp.file1, "c:\temp\_.vamsi1", 1)
server2client(tmp.file2, "c:\temp\_.vamsi2", 1)
server2client(tmp.file, "c:\temp\" & local.path(1;(len(local.path)-3))&"ps",1)
These three lines copy the temp files down to the client. Here is the format:
function extern long server2client(
const string source(),
const string dest(),
long text.mode,
[ long progress.window ] )


Quote:
ret = app_start("d:\ghostscript\gs7.03\bin\gswin32c.exe @_.vamsi1 @_.vamsi2", "c:\temp\","","","")
This line starts ghostscript with parameters. Here is the format of this:

function extern long app_start(
const string commandline(),
const string directory(),
const string stdin(),
const string stdout(),
const string stderr() )


Mark
Reply With Quote
  #3  
Old 14th December 2001, 20:19
Eddie Monster's Avatar
Eddie Monster Eddie Monster is offline
Guru
 
Join Date: Nov 2001
Location: Pittsburgh, PA, USA
Posts: 346
Eddie Monster is on a distinguished road
Baan: Baan IVc4 - DB: MS SQL Server 2008 R2 - OS: MS Server 2008 R2
Mark,

Thanks for the assistance... Here is the set-up I have for the device. I think that I am missing something because when I use this device it doesn't appear to access Ghostscript at all. Any suggestions?

Device: PDF_Writer
Desc: Creates PDF Format
Device Type: Rewrite
4GL Program: ttstpconv
Argument: POSTSCRIPT
Path: filename.pdf
Change Allowed: Yes
Page Length: 66

all other fields are left blank.
Reply With Quote
  #4  
Old 14th December 2001, 20:31
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,935
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Change 4gl Program

Change the 4gl program to be the new version of ttstpconv. If you look at the sample attached in my version you will see otuddconv3 in my device as the 4gl program.

If you used Vamsis post then you created and compiled a script - now just call it in the device.

Mark
Reply With Quote
  #5  
Old 14th December 2001, 22:11
Eddie Monster's Avatar
Eddie Monster Eddie Monster is offline
Guru
 
Join Date: Nov 2001
Location: Pittsburgh, PA, USA
Posts: 346
Eddie Monster is on a distinguished road
Baan: Baan IVc4 - DB: MS SQL Server 2008 R2 - OS: MS Server 2008 R2
I have replaced the ttstpconv with my script (pobgacrobat). When I try to test it by running a report and selecting my new device to print PDF, I receive an error stating that I don't have permission for pobgacrobat. I tried to go to User Authorizations, but it doesn't show up there. Where else can I set up such permissions?
Reply With Quote
  #6  
Old 14th December 2001, 22:26
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,935
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
We use Unix.

I am not sure about this, but on Unix check the directory $BSE/application. Go into the package and VRC combination. Make sure all directories and files have at least RW permissions(owner and group). I am not sure if it is this. I developed my version as a 3GL script in the package tu and module ddc. I do not know of any user permissions that have to be granted.

I changed my permissions on the file to 000 and got the error "Cannot read session or object". Have you developed other things in the pobga package and module?

With all these good questions I think I will split this thread and put it back in the tools forum. Maybe someone else has an idea about the permissions. I also added a link so others could see the code you referenced.

Thanks

Mark

Last edited by mark_h : 14th December 2001 at 22:48.
Reply With Quote
  #7  
Old 17th December 2001, 17:38
Eddie Monster's Avatar
Eddie Monster Eddie Monster is offline
Guru
 
Join Date: Nov 2001
Location: Pittsburgh, PA, USA
Posts: 346
Eddie Monster is on a distinguished road
Baan: Baan IVc4 - DB: MS SQL Server 2008 R2 - OS: MS Server 2008 R2
Regarding the 4GL Program field:

I have modified Vamsi's script to suit my own needs in order to print in a PDF file format. When I run the script tfobgacrobat -(not pobgacrobat- my typo in a previous message - my apologies to all)... from form 2 of the Maintain Program Scripts Session (ttadv2130m000) everything appears to work fine. However, when I run it (indirectly) by selecting my Device for printing nothing happens. Does my tf-obg-acrobat script need to be placed in specific directory or do I need to use some sort of a reference for a path to my script?

In the field mentioned above I have the following:

tfobgacrobat
Reply With Quote
  #8  
Old 17th December 2001, 19:41
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,935
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Try....

Did I understand correctly? You have tfobgacrobat in the 4gl of the device. It should point to the object otfobgacrobat. The object is what needs to be run.

Give that a try.

Mark
Reply With Quote
Sponsored Links
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
DEV: Create vanilla PDF files from Baan with Open Source components ~Vamsi Code & Utilities 69 3rd August 2011 09:04
Open Source ahoy! Calling interested programmers. ~Vamsi Tools Development 9 30th December 2001 15:24
How to get BaaN Documents - PDF Files baanguru General Discussion & Chat 1 26th November 2001 12:40
Baan World Users conference in Orlando chadwickh General Discussion & Chat 7 3rd November 2001 22:55
BSP-US (LLC) added as a Baan Education Alliance svandenh General Discussion & Chat 1 20th August 2001 20:44


All times are GMT +2. The time now is 11:51.


©2001-2017 - Baanboard.com - Baanforums.com