starting Reports from Forms - found a strange difficulty ...

From: Jan Gelbrich <j_gelbrich_at_westfalen-blatt.de>
Date: Mon, 17 Mar 2003 17:47:18 +0100
Message-ID: <b54u95$23uu10$1_at_ID-152732.news.dfncis.de>



Hello,

[Quoted] it should be easy and I did it now several times succesfully, but this time I see the follwong behavior that I cant explain ...

A Form has a button item to start a row of Reports, passing a short parameter list to them.
On my developement PC, it works fine, on my team members´ PC also. No problems at all,
but when I wanted to show it on a normal PC, the report is not started, showing REP-0110.

What is strange is not that message (the manual is clear enough about it), but this:
the Form.fmx and the Reports.rep *are* residing in the *same directory*, and on Windows,
there are also no permission problems to open the files as under unix. And *I cannot even reproduce that behavior* on the PCs in my range. What is very aking is, that I recognized these problem on the PC of _my manager_, who wasn´t
very amused to see nothing working ... and in that moment I began to ask myself if I am going
to develope hallucinations ...



What else besides naming or directory problems could cause the Reports not to run
on a Windows Client and show REP-0110 ? A "system error" could be *anything* ...

The When-Button-Pressed- Code is this:

--print the contracts

DECLARE
   PL_ID ParamList;

BEGIN

      PL_ID := Get_Parameter_List( 'contract' );
      If Not Id_Null( PL_ID )
      Then
         Destroy_Parameter_List( PL_ID );
      End If;
      PL_ID := Create_Parameter_List( 'contract' );

   --Report System-Parameter:
      Add_Parameter( PL_ID, 'DESTYPE', TEXT_PARAMETER, 'PRINTER' );
      Add_Parameter( PL_ID, 'PRINTJOB', TEXT_PARAMETER, 'YES' );

   --own Parameter:
      Add_Parameter( PL_ID, 'UP_Pers_Id', TEXT_PARAMETER, To_Char(
:Person.Pers_Id ) );
--thats it

--this List is valid for all the following Reports:

      Run_Product( REPORTS, 'C_Company1', SYNCHRONOUS, BATCH, FILESYSTEM, PL_ID, NULL );
      Run_Product( REPORTS, 'C_Company2', SYNCHRONOUS, BATCH, FILESYSTEM, PL_ID, NULL );       Run_Product( REPORTS, 'C_Attach1', SYNCHRONOUS, BATCH, FILESYSTEM, PL_ID, NULL );       Run_Product( REPORTS, 'C_WageAttach', SYNCHRONOUS, BATCH, FILESYSTEM, PL_ID, NULL );       Run_Product( REPORTS, 'PersonellData', SYNCHRONOUS, BATCH, FILESYSTEM, PL_ID, NULL ); END; BTW: Forms 5.0, Rep 3.0 (yes I know it is desupported since long ago but I have no choice, no way),
C/S environment on Windoze - will also not be changed untill hell freezes over ...

If any of the Forms/Reports gurus around here have made some similar observations, I would be glad
to learn from You ...

TIA Jan Received on Mon Mar 17 2003 - 17:47:18 CET

Original text of this message