Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8082

Re: I am filling the data on excel but i want it to open rather download, how can i do that?

$
0
0

hi yash,

 

you can try to use OLE method to open excel file

 

An example can be as follows:

 

create object xlapp 'EXCEL.APPLICATION'.

call method of xlapp 'Workbooks' = xlbook.

call method of xlbook 'Open' exporting #1 = (filen_name).

call method of xlapp 'Worksheets' = xlsheet exporting #1 = (sheet_name).

call method of xlsheet 'Activate'.

call method of xlsheet 'Cells' = scell exporting #1 = zrow

                                                                     #2 = zcolumn.

get property of scell 'Value' = val. " this is the value.

free object scell.


Viewing all articles
Browse latest Browse all 8082

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>