Results 1 to 5 of 5

Thread: ncreport problem

  1. #1
    Join Date
    Jun 2011
    Posts
    21
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default ncreport problem

    hi everybody i make a report in ncreport in windows 7 and i use QT 4.7 but when i run it from qt i get this error:
    C:\Qt\2010.05\qt\Universityfinal-build-desktop\debug\Universityfinal.exe exited with code -1073741515
    here is my code:
    this is my pro file:
    Qt Code:
    1. DEFINES += NCREPORT_IMPORT
    2. LIBS += C:\Program Files\NCReport\2.6.1.mingw.eval\bin\ncreport2.dll
    3. INCLUDEPATH += "C:\Program Files\NCReport\2.6.1.mingw.eval\include"
    4. QT += xml sql
    5. TEMPLATE = app
    6. DEFINES += QT_NO_DEBUG_OUTPUT
    7. CONFIG += warn_on \
    8. qt \
    9. thread \
    10. release
    To copy to clipboard, switch view to plain text mode 
    and this is my code:
    Qt Code:
    1. #include <ncreport.h>
    2. #include <ncreportoutput.h>
    3. #include <ncreportpreviewoutput.h>
    4. NCReport *r = new NCReport;
    5. r->reset();
    6. r->clearBatch();
    7. r->setReportFile(QApplication::applicationDirPath()+QDir::separator()+"folder.xml");
    8. r->runReportToPreview();
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: ncreport problem

    Run with debugger and check backtrace, this way you'll know where it crashed.

  3. #3
    Join Date
    Jun 2011
    Posts
    21
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: ncreport problem

    when i click start debuging produce an error and nothing happen can anybody help me?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: ncreport problem

    The ncreport2.dll file must exist on the PATH of the run time environment or the application will fail to start.

    Read http://social.msdn.microsoft.com/For...-3619a11debac/ for a good description of Windows error messages.

  5. The following user says thank you to ChrisW67 for this useful post:

    hamidarr (11th July 2011)

  6. #5
    Join Date
    Jun 2011
    Posts
    21
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: ncreport problem

    thanks ChrisW67 my problem solve

Similar Threads

  1. Qt App and NCReport
    By Kclark in forum Qt Programming
    Replies: 1
    Last Post: 11th January 2011, 09:42
  2. [solved] Little problem with NCReport, New page ?!
    By QAmazigh in forum Qt Programming
    Replies: 3
    Last Post: 10th June 2009, 09:58
  3. Problem with NCReport : can't link shared library !
    By QAmazigh in forum Qt Programming
    Replies: 4
    Last Post: 5th June 2009, 23:38
  4. Qt and NCReport
    By alphajoseph in forum Qt Programming
    Replies: 1
    Last Post: 20th February 2009, 10:29
  5. Installing NCReport
    By alphajoseph in forum Qt Programming
    Replies: 2
    Last Post: 19th February 2009, 10:30

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.