[wxReportWriter] Header and Footer are not displayed

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
rvagner
Earned a small fee
Earned a small fee
Posts: 12
Joined: Mon May 08, 2006 1:38 pm

[wxReportWriter] Header and Footer are not displayed

Post by rvagner »

Is it a bug?

If a report file created by my application is opened by report sample (available in http://www.daily.de/RepWrt/) the header and footer is normally displayed. But, the same report file was not showing the header and footer in my report view app.

The report sampel App was compiled with wxWndows 2.3.3 and my App with wxWindows 2.8.9.

After a detailed debug, I found what may be a bug.

In ReportPrintout constructor, the member m_fScaleMMToLogUnits is not initialized and the value assumed is 0. This cause a calculation error of the "Scale" and the wxReportObj's are not correctly drawn.

Assigning a default value (3.78 ) for the member m_fScaleMMToLogUnits, solved the problem so far.

[]'s
Vagner.
Post Reply