A.R.Acharya
11th July 2003, 07:32
Hi all

I am using baan 4C4 on Tru unix and clients on windows XP. I want to store report output file in cleitn machine. I had tried this with output device as file but the file is created only on server.

Need help to create the report output files in the client machine.

Thanks in advance.

baanlover
11th July 2003, 08:26
Hi,

Create a new device with the below details.


DeVice Type : Rewrite File

4Gl Program : ttstpconv
Argument : ascii:notepad.exe
Path : ${BSE}/temp/file.txt
Change allowed : Yes
Page Length : 66.

If you select this device while printing, it will open the o/p in Notepad in the client PC and they can save the result in the local HDD. Pls make a note that the Notepad should work from command prompt(Dos Prompt) in the client PC, otherwise this device will not work.

~BaaNLover

rupertb
11th July 2003, 10:56
Hi AR, here's another solution in the attached document - can't take credit for it tho' I wish I could remember where I found it...

dorleta
11th July 2003, 12:07
I´d make of this way:

watch the doc.

tools123
12th July 2003, 03:00
you can use the seq.* and server2client to create a file for the
report output and then bring it over with additional options to
open using Notepad, Excel etc.

A.R.Acharya
16th July 2003, 07:18
Thanks for the tips.

I am using the copy2pc option. After creating the script and device, while running the report, it is giving following error

1: Process 8 - Error : Can't read session or object (tctpltest)

I had created the script as tctpltest under current package VRC (tc B40C c4 003 -Common Dev), script compiled without any error.


Acharya

rupertb
16th July 2003, 09:33
Hi there Archarya,
Thinking about your problem has lead me to believe that the session has not been created. In my case the session is called tccomcopy2pc without forms or reports. And the attached program code of type 3gl is also called tccomcopy2pc. If both the script and the session exist then try the following:
In maintain sessions go to form 2 and use the special+start session option - does it start? If it does then try the file+run option on the menubrowser and call your session - does it start? If it does then there should not be any problems when its called from the device.

Happy hunting,
Rupert

A.R.Acharya
16th July 2003, 11:18
Hi Rupert

Thanks for the help. Yes, I had created only the script without the session, now it is working after creating the session with same name.

Acharya

tnzabo
4th April 2007, 20:02
Hi Rupert - I've been using this code you posted - thanks so much! it's really great! However, every report I do get a blank line in between every line. Have you had this problem? When I use the regular ASCIF device to a text file there are no blank lines. It doesn't look like anything in the copy2pc code because it basically just creates the file and moves it to the client right?

hmmm