Report Code fails in package run

More
1 year 10 months ago #24566 by prashant
Hellos,

It's Fastreports yet again !

I have a report which works fine when I run it manually , it has a small code which allows it to hide the frame of a table for first item in group .it works fine when I run in manually

When I run the package via command line I get the following error 
Script error at 12:15: Undeclared identifier: 'TableCell1'

If I remove the CODE , then the report runs fine

Code:
var FirstPrintRowBorder: Boolean; procedure GroupHeader1OnAfterPrint(Sender: TfrxComponent); begin   FirstPrintRowBorder := True; end; procedure TableCell1OnBeforePrint(Sender: TfrxComponent); begin   if FirstPrintRowBorder then     TableCell1.Frame.TopLine.Color := clWhite   else     TableCell1.Frame.TopLine.Color := clBlack; end; procedure TableCell2OnBeforePrint(Sender: TfrxComponent); begin   if FirstPrintRowBorder then     TableCell2.Frame.TopLine.Color := clWhite   else     TableCell2.Frame.TopLine.Color := clBlack; end; procedure TableCell3OnBeforePrint(Sender: TfrxComponent); begin   if FirstPrintRowBorder then   begin     TableCell3.Frame.TopLine.Color := clWhite;     FirstPrintRowBorder := False;   end   else     TableCell3.Frame.TopLine.Color := clBlack; end;

Please Log in or Create an account to join the conversation.

More
1 year 10 months ago #24567 by admin
Can you try latest version and let us know the outcome

 

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save