Error in win version

2006-08-03
2013-04-08
  • Oystein Andersen

    Using win is not my first choice, but i have to it in some of my clients. Using qt, it should not be a problem.

    I'm using ncreport and i works very nicely with linux, but when using win(xp) I get an error message like this:"Error in report!Data not found i master query(documentitems)". Its exactly the same xml as in linux. Any ideas?

     
    • Norbert Szabo

      Norbert Szabo - 2006-08-05

      Hi!
      This message occurs when the master query results 0 records. Please test if query results records from XP outside of report.
      Is it version Qt4?

       
      • Oystein Andersen

        Yes, it works. When i copy the sql code to MySql Query brower it works well. And the report works perfekt in linux without any modifications.

        Its qt4

         
    • Norbert Szabo

      Norbert Szabo - 2006-08-09

      As it seems by feedbacks the Win version of Qt4 QSqlQuery::size() results 0. I don't know why, but
      that the reason is why NCSqlQuery:: getRowCount() returns 0 and generator always speaks "Data not found in master query!"
      NCSqlQuery:: getRowCount() should be pached to solve this problem (count fetched rows another way)

       
    • Norbert Szabo

      Norbert Szabo - 2006-08-09

      new 0.7.10 release solves this problem

       
      • Oystein Andersen

        I have another problem with the win version. When i use "addQuery" it will not work. I't works fine in Linux enviroment. I have not bug traced it yet, but i will. I just want to make sure i dont do anything stupid whith the code first.

            NCReport * report = new NCReport( QString::null, 0 );
             report->setParseMode( NCReport::fromDatabase );    
            report->setReportID( id.toInt() );  //bugtracing the _xml variable in ncreport.cpp seems fine
             report->setFileEncoding( "utf-8");
            report->addQuery(out,"master",true); //out is an QString with an sql-code in it.
             report->runReportToPreview();

         

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks