Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5417

Excel Report - Problem with writing strings in scientific notation to an excel file ("3E04")

$
0
0

I'm trying to write hex strings to an excel file using Excel Report, but I came across cases where the string happens to be in scientific notation ("3E04"). The excel file interprets "3E04" as 30000. I'm using SetCellValue to write to the file and I've specified that the type is a string. I understand that from Excel it is possible to format cells to be straight text, but how can I do that from CVI, such that it is interpreted as text and not numeric?

 

This is my code:

ExcelRpt_SetCellValue(OutputWorksheet, "A1", ExRConst_dataString, "3E04");

 

I'm using LabWindows CVI 2013 and MS Excel 2007 


Viewing all articles
Browse latest Browse all 5417

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>