Home » U++ Library support » U++ Core » Report package - some changes
Report package - some changes [message #39540] |
Tue, 26 March 2013 19:00 |
|
deep
Messages: 263 Registered: July 2011 Location: Bangalore
|
Experienced Member |
|
|
Hi,
While using Report for print documents I was struggling to get correct positioning of the printed area on the paper. With present code when Report.Margins(x,x) is 'NULL' then only it is possible to get centered print.
Then I noticed the bool center is set as true in declaration and was not used by functions calling this routine.
void Print(Report& r, PrinterJob& pd, bool center = true);
I made some changes in the ReportDlg.cpp and Report.h files.
My changes are basically in these functions
void Print(Report& r, PrinterJob& pd, bool center = true);
bool DefaultPrint(Report& r, int i, const char *_name = t_("Report"), bool center = true);
bool Print(Report& r, int i, const char *name = t_("Report"), bool center = true);
bool Print0(Report& r, int i, const char *_name, bool dodlg, bool center);
Also I have added option in report window to select 'centered' printing.
I am attaching my zipped Report folder and also my patch files.
It is working for me. My changes may be useful to somebody.
-
Attachment: ReportPatch.7z
(Size: 0.64KB, Downloaded 207 times)
-
Attachment: Report.7z
(Size: 15.98KB, Downloaded 196 times)
Warm Regards
Deepak
|
|
|
Goto Forum:
Current Time: Thu May 23 16:11:42 CEST 2024
Total time taken to generate the page: 0.02334 seconds
|