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

PB Syntax for Programmable OLE Objects (Excel)

$
0
0

If I want to manipulate Excel (open Excel file, set value to cell, etc.), I need to write syntax like these (example):

 

  lole_excel = create oleobject
 
lole_excel.ConnectToNewObject("excel.application")

  lole_excel.WorkBooks.Open("C:\some_path_to\sample.xls")

  lole_workbook
= lole_excel.application.workbooks(1)
  lole_worksheet
= lole_workbook.worksheets(1)

 
//Set the cell value
  lole_worksheet
.cells(1,11).value ="Some value"//it is cells(line, column)

  // Save
  lole_workbook
.save()
 
// Quit
  lole_excel
.application.quit()
  lole_excel
.DisconnectObject()

  destroy lole_Excel


The question is, where should I look for complete reference of properties and function to be used?

I mean, if I want to add/embed PDF file into Excel, what function should I use? What value to pass as parameter?

What PB syntax should I code to accomplish this? Where can I find complete document for these functions/properties?


Many thanks for your attention.


Viewing all articles
Browse latest Browse all 2935

Trending Articles



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