General information
Category:
COM/DCOM and OLE Automation
Title:
Clip excel graph in form.oleboundcontrol
Hi,
in my old VFP6 application this code works fine number years, form with oleboundcontrol, which display excel graph, code:
.oleboundcontrol1.controlsource=""
lcF=ogProgram.TempRoot+"\Temp_vzorkyDj.xls"
delete file (lcF)
olesheet=CreateObject("excel.application")
olesheet.workbooks.open(ogProgram.TempRoot+"\vzorkyDj.xls")
*** fill the sheet
olesheet.activeworkbook.saveas(lcF)
olesheet.application.quit
release olesheet
olesheet=.null.
create cursor bla (bla g)
append blank
append general bla from (lcF)
.oleboundcontrol1.controlsource="bla.bla"
oleboundcontrol1.width=990, stretch=0, but I can see only about 600,
same is in modify memo bla.bla,
saved file (lcF) is OK,
I can't find mistake: is it in Excel, VFP, display driver ...?
Thank you in advance.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only