Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

How can subtotal excel sheet through powerbuilder

$
0
0

I am using powerbuilder 11.2  and I am looking for the excel subtotal function to run through PB. Please any help very appreciate
Please can u help  to subtotal my excel sheet. code is given below:

ole_excel = CREATE OLEObject
li_rtn = ole_excel.ConnectToNewObject("excel.application")
IF li_rtn  = 0  THEN
   l_str_dir = is_filename
   li_nextrow = l_lng_rowcnt +
   li_lastrow = li_nextrow + 1
   ole_excel.visible = false
   ole_excel.Application.DisplayAlerts = False
   ole_excel.WorkBooks.Open(l_str_dir)
   ole_workbook = ole_excel.application.workbooks(1)
   ole_worksheet = ole_workbook.worksheets(1)
   ole_excel.Application.Visible = True
   ole_worksheet.Columns("A:L").EntireColumn.AutoFit
END IF

 

Message was edited by: Robert Nestor


Viewing all articles
Browse latest Browse all 2935

Trending Articles



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