Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel sheet within a VFP form
Message
 
À
04/06/2012 15:25:37
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01545120
Message ID:
01545312
Vues:
66
>Yuri:
>
>Thanks for the help. It should be very useful for me. I have an additional question that I hope you can help me with.
>thisform.oExcel = CREATEOBJECT("excel.application")
>thisform.oExcel.displayalerts = .F.
>Thisform.oExcelWindowHandle = FindWindowA(NULL, thisform.oExcel.Name)
>
>SetParent(Thisform.oExcelWindowHandle,thisform.HWnd)
>
>Is there any way to have it be part of a Page in a Pageframe object? There's no HWnd property (at least I didn't find one) for either the PageFrame or the Page. Is there any equivalent that I can use?
>
>Thanks again. Your help is always appreciated.
>
>.........Rich

Rich

Probably you can hide/unhide excel window in pageframe page.activate event.
Try to use flags 0x80 to hide, and 0x40 to show, like:
	setWindowPos(Thisform.oExcelWindowHandle,0,0,0,;
			thisform.width,;
			thisform.command1.top,;
			0x80)
Good Luck
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform