VanjaV
October 10, 2023, 8:01am
1
Hi,
I am reading from CSV number value encoded “windows-1250” and later
writing that number value to XLS file.
The problem is, the number is written to XLS file as a string and not in number format.
How to write number in number format to XLS file?
Thx for any suggestions.
Kind regards, Vanja
Gokul001
(Gokul Balaji)
October 10, 2023, 8:03am
2
HI @VanjaV
After written the Data in the xls file you can try with Format cell activity and check the format of the row
Hello Everyone, Hope you are doing good
I would like to present this post who are looking for the Modern Activities
Very first thing is to Enable the Modern experience (from Classic)
Go to → Activities Panel → Click on Filter → Select Show Modern.
[image]
Let Jump into the Tutorial
we are look into some Modern activities
Find/Replace Value
Format Cells
Note : We need to use Excel Process Scope and Use Excel File for all the above activities
Excel Process scope
Use Excel File
…
Regards
Gokul
Yoichi
(Yoichi)
October 10, 2023, 8:12am
3
Hi,
If you’re using WriteRangeWorkbook, can you try to use UseExcelFile and WriteDataTabletoExcel activity?
If Excel is not installed in your machine, can you try to store data as Int32 in DataTable? (Column type should be Int32 or object etc) WriteRangeWorkbook will work.
Regards,
VanjaV
October 10, 2023, 8:35am
4
Hi @Yoichi
I am trying this:
but get the following error:
“Assign: Conversion from string “4.133,97” to type ‘Integer’ is not valid.”
Kind Regards, Vanja
Gokul001
(Gokul Balaji)
October 10, 2023, 8:45am
5
Hi @VanjaV
Change the variable type of the viAmount
to Int32
VanjaV
October 10, 2023, 8:47am
6
Hi,
It already is:
that is why prefix “vi” → variable integer
the other is with prefix “vc” → variable character
KR Vanja
Yoichi
(Yoichi)
October 10, 2023, 8:48am
7
Hi,
Probably I got your situation.
Can you try to use the following expression at Value property of the WriteCell activity?
Double.Parse(vcAmount,System.Globalization.NumberStyles.Any,New System.Globalization.CultureInfo("es-ES")).ToString()
Regards,
1 Like
Gokul001
(Gokul Balaji)
October 10, 2023, 8:50am
8
Hi @VanjaV
Can you try with Cdbl instead of Cint
VanjaV
October 10, 2023, 8:59am
10
Hi @Gokul001
It gives this error:
Assign: Conversion from string “4.133,97” to type ‘Double’ is not valid.
system
(system)
Closed
October 13, 2023, 8:59am
11
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.