06-10-2006 09:28 AM
06-11-2006 07:43 AM
I try to clarify: there is a code example:
//create excel
GetObjHandleFromActiveXCtrl( PanelHandle,ExcelId, &workbookHandle);
GUI_p_ExcelChangeExcelWorksheet(1);
//add values from the table
ExcelRpt_WriteDataFromTableControl(worksheetHandle, "B2:E6",
PanelHandle, TableId);
//save excel in file
ExcelRpt_WorkbookSave( workbookHandle,"file",ExRConst_DefaultFileFormat);
Program create excel file, but when I open it I can’t see anything. Additionally, when I open it in notepad I can see the data. I guess that problem is in the file format constant.
Some body can help me pls
Thank you
06-11-2006 07:14 PM
06-13-2006 12:14 PM
Thank you, it works excellent. I saw it in cvi examples, before. I need to use excel document from cvi panel and not as separate document, and I need to save this document after using. So i can do it by duplicating data (once in cvi panel excel and one else in new excel application) but it looks urgly.
is it impossible to save excel, created from uir component?? Dose it mean, that cvi activex control driver has serious bug/problem??
06-13-2006 01:16 PM
Yes you can. Create Excel Template. Save all data from UIR to temp file. Using Excell macro or VBA to open temp file then insert those data into your Excel Template then tell VBA program save as Excel file name.
Let me know if it work