Ok this is really hard to explain so I will try. I have come across a program that exports to excel, but some of the data contains leading 0's which need to be displayed, as with out it the data is wrong. First off is there a way to format the cells before data is placed in excel. I know the format is
cColLabel = colReference(INTEGER(ENTRY(i,caccountcols))).
ASSIGN chRange = chWorkSheet:Range(cColLabel + ":" + cColLabel).
chRange:NumberFormat = "@". (chRange being com-handle)
to make the column text format, but the leading zeros are cut out before this is formatted. I have tried placing before the data is writen but only receive errors.
So after talking with another programmer we came up with making a temp-table which when needed will save the cell location and format for that cell. How can I load this temp table in the formatting .p file when it is created in the .p file which does the exporting?
Being I am an intern its hard to get alot of help when other programmers here are very busy. Thanks in advance for any help.
cColLabel = colReference(INTEGER(ENTRY(i,caccountcols))).
ASSIGN chRange = chWorkSheet:Range(cColLabel + ":" + cColLabel).
chRange:NumberFormat = "@". (chRange being com-handle)
to make the column text format, but the leading zeros are cut out before this is formatted. I have tried placing before the data is writen but only receive errors.
So after talking with another programmer we came up with making a temp-table which when needed will save the cell location and format for that cell. How can I load this temp table in the formatting .p file when it is created in the .p file which does the exporting?
Being I am an intern its hard to get alot of help when other programmers here are very busy. Thanks in advance for any help.