in

C1 Community

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

exportToRTF

Last post 02-05-2008 4:55 PM by C1_JohnAd. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 02-04-2008 1:45 AM

    exportToRTF

    Hi

     

    I am using True DBGrid.ExportToRTF but I get Error Message:

    System.NullReferenceException was unhandled
      Message="Object reference not set to an instance of an object."
      Source="C1.Win.C1TrueDBGrid.2"
     

    fragment code:

    c1TrueDBGridVysledky.ExportToRTF(subor);

    I don't understand why, because e few minute ago this was correct and I get that file

     

    Robert.
    Filed under: ,
  • 02-04-2008 2:28 PM In reply to

    Re: exportToRTF

    Hello Robert,

    In regards to your query I would like to mention that I tried to reproduce
    the said behavior using C1TrueDBGrid for .Net build 2.0.20073.61130 but
    unfortunately, was not able to reproduce the said behavior. I have attached
    a sample which gives expected results. Please let me know which version of
    C1TrueDBGrid you are using or if possible please provide me with the sample
    which can replicate the issue.

    Awaiting your response.

    Regards,
    John Adams


    wrote in message news:201577@10.0.1.98...
    Hi

    I am using True DBGrid.ExportToRTF but I get Error Message:
    System.NullReferenceException was unhandled
    Message="Object reference not set to an instance of an object."
    Source="C1.Win.C1TrueDBGrid.2"

    fragment code:
    c1TrueDBGridVysledky.ExportToRTF(subor);
    I don't understand why, because e few minute ago this was correct and I get
    that file

    Robert.


    http://helpcentral.componentone.com/cs/forums/p/74192/201577.aspx#201577
  • 02-05-2008 3:53 AM In reply to

    Re: exportToRTF

    I

    Hello John, I tried your example and it worked fine. So I created new True DBGrid and it worked. I don’t understand why first one isn’t working and second is working. Then I set caption on all columns and I get error. I read captions from table on SQL Server. Sometimes I get NULL value for caption. Grid is showing correct without name of column but when I want to export to RTF I get error. Now I test value for NULL and change value to “”.Now all is fine. Thank you for your example. It helps me very much.  Regards, Robert Cibula

     

  • 02-05-2008 4:55 PM In reply to

    Re: exportToRTF

    Hi Robert,

    Thank you for updating me. It is always feel when you hear something like
    this.

    Thank you for your encouraging words.

    With best regards,
    John Adams

    wrote in message news:201635@10.0.1.98...
    I
    Hello John, I tried your example and it worked fine. So I created new True
    DBGrid and it worked. I don�?Tt understand why first one isn�?Tt working and
    second is working. Then I set caption on all columns and I get error. I read
    captions from table on SQL Server. Sometimes I get NULL value for caption.
    Grid is showing correct without name of column but when I want to export to
    RTF I get error. Now I test value for NULL and change value to �?o�?�.Now
    all is fine. Thank you for your example. It helps me very much. Regards,
    Robert Cibula




    http://helpcentral.componentone.com/cs/forums/p/74192/201635.aspx#201635
Page 1 of 1 (4 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.