|
-
Jul 19th, 2006, 01:39 AM
#1
Thread Starter
Hyperactive Member
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)
-
Jul 19th, 2006, 01:43 AM
#2
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?
-
Jul 19th, 2006, 02:21 AM
#3
Thread Starter
Hyperactive Member
Re: to open Excel with format
-
Jul 19th, 2006, 09:38 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|