TppViewer.Refresh / TppReport.BeginUpdate/EndUpdate
Hi,
I?m new to ReportBuilder, and a simple problem appeared, but I couldn?t
figure out how to solve..
I designed a report viewer to my users.. putting a TppViewer and switching
between some TppReport..
I have a ComboBox that changes the active TppReport connected to the
TppViewer, and the user may choose each one..
At a desired moment, the user may "apply" the change, that will reflect to a
update to some fields on a dataset that is connected to these TppReports
(the same TDataset for all of the TppReports)..
The problem is that after changing the contents of the dataset, the values
are not refreshed on the TppReport connected to the TppViewer... I tried
puting the fields update on a TppReport.BeginUpdate / TppReport.EndUpdate...
with no success.. Tried calling TppViewer.Refresh, with no success also...
The only code that worked was RE-Print to the devide :-(
TppReport.DeviceType := 'Screen';
TppReport.PrintToDevices;
Is this the unique way to do this ?
Thanks in advance
Alessandro
--
Alessandro Fragnani de Morais
Analista de Sistemas
Softplan/Poligraph
Sistema da Qualidade Certificado ISO9001-BVQI/INMETRO
Fone/Fax: 0xx(48) 3027-8000
http://www.softplan.com.br
I?m new to ReportBuilder, and a simple problem appeared, but I couldn?t
figure out how to solve..
I designed a report viewer to my users.. putting a TppViewer and switching
between some TppReport..
I have a ComboBox that changes the active TppReport connected to the
TppViewer, and the user may choose each one..
At a desired moment, the user may "apply" the change, that will reflect to a
update to some fields on a dataset that is connected to these TppReports
(the same TDataset for all of the TppReports)..
The problem is that after changing the contents of the dataset, the values
are not refreshed on the TppReport connected to the TppViewer... I tried
puting the fields update on a TppReport.BeginUpdate / TppReport.EndUpdate...
with no success.. Tried calling TppViewer.Refresh, with no success also...
The only code that worked was RE-Print to the devide :-(
TppReport.DeviceType := 'Screen';
TppReport.PrintToDevices;
Is this the unique way to do this ?
Thanks in advance
Alessandro
--
Alessandro Fragnani de Morais
Analista de Sistemas
Softplan/Poligraph
Sistema da Qualidade Certificado ISO9001-BVQI/INMETRO
Fone/Fax: 0xx(48) 3027-8000
http://www.softplan.com.br
This discussion has been closed.
Comments
Try calling
Viewer.RegenerateReport;
If that does not work, then try
Report.Reset;
Viewer.RegenerateReport;
If that does not work, then the next try would be to programmatically close
all of the datasets associated with the report, then call the above.
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com