[SOLVED] Error in NCReport for Qt 5.1.1 minGW
-
her is the code of main.cpp @#include "mainwindow.h"
#include <QApplication>int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();return a.exec();
}
@ -
What happens if you don't pass the parent to when creating a NCReport ?
-
i'm no longer getting the ealier error ,
now i get this error
@Starting C:\test\build-testncreport-Desktop_Qt_5_1_1_MinGW_32bit-Debug\debug\testncreport.exe...
The program has unexpectedly finished.
C:\test\build-testncreport-Desktop_Qt_5_1_1_MinGW_32bit-Debug\debug\testncreport.exe exited with code -1073741515@ -
You need to run your application with a debugger to see where the error is triggered
-
i get this error
@
During startup program exited with code 0xc0000135.@ -
This is a library not found error, do you have the NCReport dll somewhere in your PATH ?
If not, got to the Run panel and update the PATH environment variable adding the path to the folder where that dll can be found.
-
i have placed them before but i get the same error
i have deleted the debug folder , then recompile and replace the dll files
no it's working for me , but NCreport windows not appears yet only the main windows
-
is this code right ?
@void MainWindow::on_pushButton_clicked()
{
NCReport *report = new NCReport(this);
report->reset(true);
report->setReportFile("E:\apprendreQt\gestionstock6\includes\reports\test.xml");
report->runReportToPrinter();
}
@ -
No, you don't escape the backslashes in your path. You either have to to that or since your using Qt, use forward slashes.
-
Ok, it works