-
Krishna Mohan Gullap
- PowerBuilder
- Friday, 21 March 2025 03:21 AM UTC
Hi There to the PowerBuilder Guru's -
So, I have a window with a DataWindow in it that is run for all the Reports in the application that I work on. The Datawindow (called dw_report) is a composite DW and has a report DW embedded (dw_rpt) that looks like this
The Datawindow to the d_report is changed dynamically based on what report is run. Now, the Composite Datawindow (dw_report) is set in such a way that the property Datawindow.Print.Preview is set to Yes always
I have a report which is horizontally long since it has around 90 columns each displaying a value underneath. So, for this report, if the Print.Preview is Yes, it breaks the view and displays blank pages as it can't fit it in the Preview
Now comes the weird part, when I try to turn this OFF during runtime using dw_report.Modify("DataWindow.Print.Preview=No") and this gives me an error 'Line 1 Column 28 : Incorrect syntax". When I try dw_report.Modify("DataWindow.Print.Preview=Yes"), this returns an empty string indicating a successful MODIFY. I tried enclosing the No in a singe quote like this dw_report.Modify("DataWindow.Print.Preview='No'"), no luck! In the 'File' menu in this composite DW, I also see that the 'Print Preview' option is disabled like permanently
Maybe composite Datawindows have this property set by Default to Yes and it can't be turned OFF during runtime? Any help/suggestions are sincerely appreciated
Thanks,
Krishna
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.