Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: Report View with Fit Width  (Read 1344 times)

arvind.k@propixtech.com

  • Newbie
  • *
  • Posts: 3
    • View Profile
Report View with Fit Width
« 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.

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 992
    • View Profile
Re: Report View with Fit Width
« Reply #1 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

arvind.k@propixtech.com

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Report View with Fit Width
« Reply #2 on: July 11, 2018, 01:12:33 PM »
Thank you very much Arin Alex.
Its now working as per our application requirement.