Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clip excel graph in form.oleboundcontrol
Message
De
03/06/2008 05:47:53
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01321213
Message ID:
01321237
Vues:
17
>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.

Do not use a general field for it. Place a webbrowser control and navigate2 the excel file.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform