Missing Fields in c1FlexReport

Posted by: alhad on 18 January 2019, 12:53 pm EST

    • Post Options:
    • Link

    Posted 18 January 2019, 12:53 pm EST

    Hi,

    I have a report which prints patient test reports for a pathology laboratory. I find that randomly the report does not print the signature and name of the doctor. I have attached the flxr file and xsd file used to generate the report. The report has 5 pages. The doctors name (Field 11) and qualification (Field 10) does not print on page 4 only. They print on all other pages. I am using version 4.0.20182.314

    Am I missing anything here?

    Alhad

    LabTestReport1.zip

  • Posted 21 January 2019, 10:17 pm EST

    Hi Alhad,

    Thank you for sharing the files. I could replicate the problem at my end as well.

    I am still investigating for the root cause of this to occur. As of now, what I could find is: if the following code is removed from the Detail’s OnFormat script, the Doctor’s Name and Qualification fields render on every page of the report as expected:

    
    If RangeTypeID=2 Then
     RangeCtl.Width=3000
    Else
     RangeCtl.Width=1605
    Endif
    
    If RangeCtl.Value=null Or Trim(RangeCtl.Value)="" Or Trim(RangeCtl.Value) = "-" Then
      ResultCtl.Width = 6800
      AnalysisCtl.Text = ""
    Else
      ResultCtl.Width = 1993
      AnalysisCtl.Text = Left(Analysis,1)
    EndIF
    
    

    Please give me some more time to narrow this down. Will get back to you as soon as this is done.

    ~Pragati

  • Posted 22 January 2019, 10:13 pm EST

    Hi Alhad,

    I looked into the problem further.

    The following lines of code in Detail’s OnFormat script are causing the problem:

    RangeCtl.Width=1605
    ResultCtl.Width = 6800
    

    Please comment them from the code and the report will render fine. Also, find the modified version attached. I have also compared the result with your original report. Please note, not setting the Height of the above mentioned fields explicitly, does not trim the text as the controls grow automatically due to the setting of AutoHeight property.

    Thanks.

    Mod_LabTestReport_SigningIssue.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels