in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Error Creating Window Handle

Last post 01-25-2008 8:22 AM by C1_JohnAd. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-15-2007 11:21 AM

    Error Creating Window Handle

     I have a service that uses the C1.XLS component and on one particular machine we are getting a Error Creating Window Handle message. I have made sure that the license.licx file is correct in the service so that the component wont display the trial dialog. Here is the stack trace:

     
    System.ComponentModel.Win32Exception: Error creating window handle.
       at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
       at System.Windows.Forms.Control.CreateHandle()
       at System.Windows.Forms.Control.get_Handle()
       at System.Windows.Forms.Control.CreateGraphicsInternal()
       at System.Windows.Forms.Control.CreateGraphics()
       at C1.C1Excel.C1XLBook.set_DefaultFont(Font value)
       at C1.C1Excel.C1XLBook.i()
       at C1.C1Excel.C1XLBook..ctor()
       at Quadrate.Common.Excel.Excel..ctor()
       at Quadrate.Common.Excel.Excel..ctor(String fileName)
       at Quadrate.Data.DataSources.Excel.ExcelDataSource.Open(Boolean createNewFile)
     

    Any Ideas?

     -Matt
     

  • 01-25-2008 8:22 AM In reply to

    Re: Error Creating Window Handle

    Hi Matt,
     
    Can you let me know which version of C1XLBook are you using? If you could post a sample exhibiting the said behavior would be great.
     
    Regards,
    John Adams
     
    <mrutledge> wrote in message news:199027@10.0.1.98...

     I have a service that uses the C1.XLS component and on one particular machine we are getting a Error Creating Window Handle message. I have made sure that the license.licx file is correct in the service so that the component wont display the trial dialog. Here is the stack trace:


    System.ComponentModel.Win32Exception: Error creating window handle.
       at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
       at System.Windows.Forms.Control.CreateHandle()
       at System.Windows.Forms.Control.get_Handle()
       at System.Windows.Forms.Control.CreateGraphicsInternal()
       at System.Windows.Forms.Control.CreateGraphics()
       at C1.C1Excel.C1XLBook.set_DefaultFont(Font value)
       at C1.C1Excel.C1XLBook.i()
       at C1.C1Excel.C1XLBook..ctor()
       at Quadrate.Common.Excel.Excel..ctor()
       at Quadrate.Common.Excel.Excel..ctor(String fileName)
       at Quadrate.Data.DataSources.Excel.ExcelDataSource.Open(Boolean createNewFile)
     

    Any Ideas?

     -Matt
     



    http://helpcentral.componentone.com/cs/forums/p/73317/199027.aspx#199027

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.