Menu

Getting blank page on Generate Report without XML example

2023-06-04
2023-12-29
  • Ritesh Gohil

    Ritesh Gohil - 2023-06-04

    Hi, I tried QTRpt and it is working as expected for all cases except one which I needed, to generate report without XML file using code only (example14)
    I have compiled binary under linux env. attaching the screen shot, I am getting blank page on print preview screen
    I help would be appreciated to complete my project
    I followed the code but it is not working

     
    • Duo Wang

      Duo Wang - 2023-08-26

      hi, have you solved this problem? I meet the same question.

       
      • aliks-os

        aliks-os - 2023-12-22

        yes, that was a bug. Now it is fixed, please pickup a fresh files from GIT repo

         
  • Abdullahi Abdulsalam

    Please how possible to selecting N characters from string in QtRpt for example

    std::string field1 = "abcdef";
    std::string field2 = field1.substr(0, 3);
    required out: field2 = "abdd"

    QtRpt has number formatting which work well floating point, I need similar facility for string.
    Thanks

     
    • aliks-os

      aliks-os - 2023-12-29

      not clear what problem do you have? You can do it by C++ or Qt functionality.

       
  • aliks-os

    aliks-os - 2023-12-29
    QString QString::left(int n) const
    Returns a substring that contains the n leftmost characters of the string.
    The entire string is returned if n is greater than or equal to size(), or less than zero.
     QString x = "Pineapple";
     QString y = x.left(4);      // y == "Pine"
    
     

Log in to post a comment.