GrapeCity Forums

The GrapeCity Message Boards
Welcome to GrapeCity Forums Sign in | Join | Help
in Search

Cell Multiline and multiformat

Last post 07-06-2009, 6:24 AM by SureshD. 4 replies.
Sort Posts: Previous Next
  •  07-01-2009, 8:45 AM 79729

    Cell Multiline and multiformat

    Hi,

    I am working with 3.5 version on VB6, and I need to create Cells within two lines text (multiline) and two different format for each line, something like that on the same cell:

    100€

    16600 Pta.

     

     Is this possible ? Could you please provide me an example ?

     Thanks in advance!

     

  •  07-01-2009, 10:51 AM 79735 in reply to 79729

    Re: Cell Multiline and multiformat

    Hello,

    This does not seem to be possible formatting different lines of a multiline cell with different format.

    Thanks


    Suresh Singh Dasila
    GrapeCity FarPoint
  •  07-01-2009, 3:28 PM 79746 in reply to 79729

    Re: Cell Multiline and multiformat

    Hello,

    As Suresh stated, there is not a celltype in Spread that will support different formats like this. However, you can create an OwnerDrawnCellType (if you do not need to edit the text). In this case the DrawItem event will fire with a device context handle (hDC) to the cell and the rectangle of the cell. With this you can use the DrawText API or other APIs to draw whatever you want in the cell.

    If you were to upgrade to version 8 of the Spread, we have added new functionality to add your own control as a celltype, so you could create a RichText control as the editor and renderer of the cell and be able to edit and render rich text. There is a sample in version 8 showing how to add a RichEdit control to a cell.


    Scott S.
    Product Manager, Spread ASP.NET
    GrapeCity FarPoint
  •  07-06-2009, 3:12 AM 79850 in reply to 79746

    Re: Cell Multiline and multiformat

    This was my feeling. I will study your proposal with OwnerDrawnCellType, as user do not need to edit the text.

    We are not able to upgrade Spread versión :(

     

  •  07-06-2009, 6:24 AM 79858 in reply to 79850

    Re: Cell Multiline and multiformat

    Hello,

    What kind of problem are you experiencing while trying to upgrade the Spread control?

     


    Suresh Singh Dasila
    GrapeCity FarPoint
View as RSS news feed in XML
     FarPoint Forums Home