` Printed Icetips Article

Icetips Article



Par2: Name() with Report Writer in Clarion code
1999-12-23 -- Kevin Vokes
 
Actually you can override the prompt by calling the report engine in code.
You need to derive your own report engine class from the parent engine and
use the new engine when printing the report from code.
In the app I have a variable containing the path to my data files and use
this in my derived ResolveVariableName function.

NewReportEngine        CLASS(ReportEngine)
ResolveVariableFilename FUNCTION(STRING vname,*STRING value),SIGNED,VIRTUAL
                    END

NewReportEngine.ResolveVariableFilename FUNCTION(STRING vname,*STRING
sFileName)
  CODE
    sFileName = glo:DataPath & vname & '.tps'
    RETURN TRUE



Printed November 21, 2024, 7:18 am
This article has been viewed/printed 35201 times.