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

Author Topic: Report View with Fit Width  (Read 2610 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: 1005
    • 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.