LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Save: GetCompName (CompName) in Excel

 

,Hello

 

I must save Computer-Informations into a Excel List.

To get the informations I use "GetCompName(CompName)".

 

If I want save the Informations for example "PC-DELL" I can only save the Ascii Code.

How can I save the returning String?  -> char CompName[12];     

 

Can I use this function?

Excel_RangeSetItem (ExcelRangeHandle, &ErrorInfo, CA_VariantInt (8), CA_VariantInt (3), CA_VariantChar ( CompName[1] ));            

 

Thanks for help

0 Kudos
Message 1 of 2
(3,324 Views)

What about

 

ExcelRpt_WriteData

 

HRESULT ExcelRpt_WriteData (CAObjHandle worksheetHandle, char cellRange[], enum ExREnum_ExDataType dataType, int dimension1, int dimension2, void *data);

 Regards,

 

Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
0 Kudos
Message 2 of 2
(3,283 Views)