in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Strange error

Last post 9/26/2007 9:13 AM by Alan (Developer Express). 1 replies.
Page 1 of 1 (2 items)
Sort Posts:
Previous Next
  • 9/25/2007 9:22 AM

    Strange error

    I have the following code in an Main form
    (DevExpress.XtraBars.Ribbon.RibbonForm)

    barStatictext.Caption = "Listare centralizatorul amortizarii";
    Rapoarte.CentrAmortizat lstCentrAmortiz = new
    Rapoarte.CentrAmortizat("amortizat");
    PrintingSystem prts = lstCentrAmortiz.PrintingSystem;
    PrintableComponentLink lnk = new PrintableComponentLink(prts);
    DevExpress.XtraPrinting.Preview.PrintPreviewRibbonFormEx frm = new
    DevExpress.XtraPrinting.Preview.PrintPreviewRibbonFormEx();
    frm.PrintingSystem = prts;
    lstCentrAmortiz.lblTitlu.Text = "Centralizatorul amortizarii";
    lstCentrAmortiz.CreateDocument();
    frm.Text = "Centralizatorul amortizarii";
    frm.Show();

    Everything works fin except when I minimize this form, then restore it and
    close it from ribbon form's Close Print Preview button (not forms close
    button) I get an unhandled exception at main program on
    Application.Run(new Main());
    "Object reference not set to an instance of an object"
    Sorin Sandu
  • 9/26/2007 9:13 AM In reply to

    Re: Strange error

    Hello Sorin,

    I recommend that you register a bug report in our Support Center at http://www.devexpress.com/Support/Center/CreateIssue.aspx?issuetype=BugReport, and attach your test project to it, so that we can investigate it. This would be greatly appreciated!

    @.
    R&D, .NET Team.

    PS. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/sc.
    Filed under: ,
Page 1 of 1 (2 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED