Results 1 to 4 of 4

Thread: to open Excel with format

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    266

    to open Excel with format

    I need to open excel in my application and display it in a grid ... but i have some formatting in that excel but when i open it it simply shows me data no formatiing is there plz help me

    Set oXLBook = oXLApp.Workbooks.Open(Trim(cmnDlgs.filename))
    Set oXLSheet = oXLBook.Worksheets(1)

  2. #2
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: to open Excel with format

    Is opening an embedded Excel sheet on your Form OK? Or must it be a Grid like ListView/DataGrid?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    266

    Re: to open Excel with format

    its like data grid

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: to open Excel with format

    How are you actually showing it in the grid? (code)
    And what type of grid are you actually using? (datagrid/flexgrid/...)

    I assume that you are currently using the "standard" method transfering the text, and ignoring the formatting.. if you want the formatting too, you will need to add the code to re-create it (as they are different).


    Bruce Fox's loaded question (using an OLE control) is likely to be the easiest method to get the formatting too, but that may not be appropriate for your needs.. at the moment we dont know what you want to do, (apart from seeing the formatting), so we dont know if you want it editable, etc.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width