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?
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?
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.
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)
new 0.7.10 release solves this problem
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->addQuery(out,"master",true); //out is an QString with an sql-code in it.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.