How do I prevent/disable formatting in an OWC11.Axspreadsheet colu

B

BC

I'm using Visual Studio 2005 and I have several windows apps in which I put a
AxMicroSoft.Office.Interop.owc11.axspreadsheet on a form. The cells are
programmatically populated. The code runs through a small data table, field
by field.

My problem is that I have several columns that need to display string data
fields exactly as stored. For example if the string field contains "+1.23"
it has to display exactly that. (For the purpose of this app, 1.23 and +1.23
have very different meanings.) Unfortunately the control is wiping out the +
sign.

There have been other similar problems as well, "02" displaying as 2 for
example. A "00" Numberformat will take care of that but what I'd really like
is the security of knowing formatting is turned off completely. Any way to
do that?
 
B

BC

Sorry. Found it.

Apparently all I have to do is put a single quote at the start of the string.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top