About read cell



Why can’t I print any information? As shown in the figure, should there be no problem with the settings or inputings?

HI,

Did you set variable at Output-Result property as the following?

Regards,

Hi @herowhite
check the variable passage

Hope it helps!!

Hi @herowhite
You must set Output for Read Cell

Regards,

If u do that,something else happens ,like this.
3

May I know data type of the read cell activity of Output Variable.
Try Using A1_data.ToString in the log message

Hi,

Can you try to use GenericValue type?

image

If you need to string type, please use ToString method like A1_data.ToString()

Regards,

Hi @herowhite

After you use Read Cell activity when you store the output in an variable it is of type String. You can change the variable type of A1_date to System.Object data type so it will accept any string or integer value.


image

Hope it helps!!

Hi @herowhite

Open the properties of read cell workbook activity and check the preserve format option.

In log message activity in message field give the Variable.toString then it will print the value in the output panel.

The output of read cell workbook is coming double just change to string by giving Variable.toString.

Hope it helps!!


You are right!
Why let the “A1_date” be “string” is a mistake?

@herowhite
It’s not a mistake since you are storing an int value in that cell. It will throw you an error like string cannot be converted to Double. In case of Object Data type it will accept all datatypes like string,int,double etc

Hope you understand!!

1 Like

Thank you very much!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.