LimeReport Forum

General Category | Основное => Discussion | Обсуждение => Topic started by: arvind.k@propixtech.com on July 10, 2018, 03:16:31 PM

Title: Report View with Fit Width
Post by: arvind.k@propixtech.com on July 10, 2018, 03:16:31 PM
We are using a Lime Report version 1.4.83
we have designed our custom report & called it from a application.
At the call of previewReport() , report shown in larger view.
We tried to call a method  m_previewReportWidget->fitWidth(); from a constructor of PreviewReportWindow class or from previewReport() method of ReportEnginePrivate class but it's not showing any result at Report Rendering.
We also tried to set Scale Percentage of m_scalePercent QComboBox but it's also not reflecting at Report Rendering.
Please give a solution for the same.
Title: Re: Report View with Fit Width
Post by: Arin Alex on July 11, 2018, 03:15:47 AM
Hi.
I have made new hotfix (1.4.86)
From now you can specify scaleType for previewWindow via
Code: [Select]
void ReportEngine::setPreviewScaleType(const ScaleType &previewScaleType, int percent = 0);
ScaleType can be: FitWidth, FitPage, OneToOne, Percents;
ScaleType by default is FitWidth
Title: Re: Report View with Fit Width
Post by: arvind.k@propixtech.com on July 11, 2018, 01:12:33 PM
Thank you very much Arin Alex.
Its now working as per our application requirement.