![]() |
Fastreport Variable
Halo zusammen
habe in meinem Projekt mehrere Reporte mit den gleichen Variablen ( es sind echt viele versch. Variablen ). bisher habe ich das so versucht:
Delphi-Quellcode:
Das Problem ist aber das die Variablen nur beim letzten Report gesetzt werden.
with DM_reports.rep_camp_ov, DM_reports.rep_member do
begin // Fastreport Variable set START Variables['var_camp_region'] := '''' + lbl_region.Caption + ''''; Variables['var_camp_country'] := '''' + lbl_country.Caption + ''''; >> DM_reports.rep_member für Tipps dankbar Shalom Manfred |
Re: Fastreport Variable
Du musst schon für alle Reports, diesen Schritt einzeln wiederholen.
Das With sollte man sowieso nur "seltenst" verwenden. |
Re: Fastreport Variable
Zitat:
Delphi-Quellcode:
Sowas habe ich überall in meinem Projekt und das ganze ist doch auch sehr
with DM_reports.rep_camp_ov do
begin // Fastreport Variable set START Variables['var_camp_region'] := '''' + lbl_region.Caption + ''''; Variables['var_camp_country'] := '''' + lbl_country.Caption + ''''; Variables['var_camp_zone'] := '''' + lbl_zone.Caption + ''''; Variables['var_camp_area'] := '''' + lbl_area.Caption + ''''; Variables['var_camp_no'] := '''' + lbl_admin_camp_no.Caption + ''''; Variables['var_camp'] := '''' + lbl_camp_city.Caption + ''''; Variables['var_camp_lang'] := '''' + lbl_lang.Caption + ''''; Variables['var_camp_est'] := '''' + lbl_est.Caption + ''''; Variables['var_camp_est_aux'] := '''' + lbl_est_aux.Caption + ''''; Variables['var_camp_cabinet_last_v'] := '''' + lbl_cabinet_last_v.Caption + ''''; Variables['var_camp_cabinet_next_v'] := '''' + lbl_cabinet_next_v.Caption + ''''; Variables['var_camp_m_last_v'] := '''' + lbl_m_last_v.Caption + ''''; Variables['var_camp_m_next_v'] := '''' + lbl_m_next_v.Caption + ''''; Variables['var_camp_rating'] := '''' + lbl_camp_rating.Caption + ''''; Variables['var_camp_distance'] := '''' + lbl_distance.Caption + ''''; praktisch. Was soll den der Nachteil sein? |
Re: Fastreport Variable
Wenn manche Eigenschaften dann nicht mehr eindeutig zugeordnet werden können.
|
Re: Fastreport Variable
Wenn ich jetzt aber in dem Fall ca. 50 Variablen so "erstelle" ist das ok?
|
Re: Fastreport Variable
welchen Sinn machen so viele Variablen denn noch? Gehören die nicht besser in eine Datentabelle??
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:27 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz