Hola, soy aún novato y estoy desarrollando mis primeros robots.
Resumo el proceso que estoy realizando:
1 - Leo un excel para obtener un Datatable (ReadRange)
2 - Dentro de un For each row in datatable:
2.1 - Asigno a diferentes variables los valores de cada columna
Assign To: variable1 Currentrow(“variable1”).ToString (los nombres de las variables coinciden con las cabeceras del DataTable
2.2 - Mediante Write Cell, relleno con las variables anteriores un Excel nuevo y colocado de forma muy diferente al leído en el paso 1. Lo hago variable a variable, no consigo encontrar una forma mejor de hacerlo
2.3 - Mediante una actividad convierto el Excel en PDF
Tengo dos dudas para las que necesito ayuda:
a) Los valores en el Excel inicial están con formato General (Ej: 123456,78). He encontrado una actividad “Double Formatter” mediante la que consigo que en el PDF el dato se muestre como 123.456,78. El problema es que tengo que hacerlo para cada dato. ¿Hay forma de hacerlo para todos los datos de una sola vez?
b) Lo mismo me ocurre con valores que en el Excel inicial son 0 o nulos y en esos casos el PDF los muestra como 0. Me gustaría poder mostrarlos sin valor (cadena vacía) y hacerlo de una sola vez.
@Srini84, the question is that I don’t want to preserve format. I just want to change the format to all cells at the same time (I actually do it cell by cell because I dont know how to do it for all cells at once)
dato 1 – 123456,78 ------------------->123.456,78
dato 2 – 345678.94 ------------------> 345.678,94
dato 3 – 0 ---------------------------->
dato 4 – —>
dato 5 – 4567895,65 -----------------> 4.567.895,65
If value is 0 or nothing, the final pdf must show " ". If value is a number, final pdf must show the number with the format I show in the example.
Instead of one column, my datatable has 47 columns with data as in the example. I want to pass from excel to pdf changing the format as in the example
@Srini84, the question is that I don’t want to preserve format. I just want to change the format to all cells at the same time (I actually do it cell by cell because I dont know how to do it for all cells at once)