PDF Google Docs

Hi!

I made a BOT in my app that generates an invoice in PDF format with the customer's information and the sale details (list of products purchased).
So far everything is perfect, the problem I have is when I use Google docs, the PDF is armed with a table and every time I add products, the table goes down and goes to another page.

Is there any possibility to make a table with a fixed size so that each enter or line break (added products) does not increase the size of the table in Google Docs?

Thank you!

 

Hola!

hice un BOT en mi app que me genera un invoice en formato PDF con la info del cliente y el detalle de venta (lista de productos comprados).
Hasta ahi todo perfecto, el problema lo tengo cuando utilizo Google docs, el PDF esta armado con una tabla y cada vez que agrego productos, la tabla baja y pasa a otra pagina. 

Hay alguna posibilidad de hacer una tabla con tamaño fijo para que cada salto de enter o linea (productos agregados) no aumente el tamaño hacia abajo de la tabla en Google Docs?

Gracias!

 

Solved Solved
0 9 1,122
1 ACCEPTED SOLUTION

What you may simply want is to remove the cell borders--that might achieve the display you're seeking.

Alternatively, try embedding another table within the minimum-height table cell. For example:

dbaum_0-1663355387981.png

 

View solution in original post

9 REPLIES 9

Podrías enviarnos ejemplos de tu plantilla así como el resultado final.

Por ahora, por lo que explicas, no hay nada malo en el funcionamiento de AppSheet

Ese es el invoice, cada vez que agrego productos <<PART NUMBER>> <<PRODUCTOS>> la tabla aumenta el tamaño y baja una linea.

Hay alguna manera de colocar la tabla con tamaño fijo?

Gracias!

 

That is the invoice, every time I add products <<PART NUMBER>> <<PRODUCTS>> the table increases in size and goes down one line.

Is there a way to set the table to a fixed size?

Thank you!

Entiendo.

Lo que sucede es que lo que intentas hacer no es del todo posible. Tiene sentido para tí pero no desde la perspectiva de AppSheet.

Una celda está hecha para mantener un registro, no múltiples.

AppSheet agregará una fila por cada fila que estás tratando de agregar

Gracias por tu respuesta @SkrOYC 
Con la cantidad de filas no tengo problemas

El problema es que la tabla no baje cada vez que se agregan items o filas, que mantenga el tamaño fijo.

Te dejo el link de un gif que explica bien el problema.
https://i.ibb.co/sPLjpFH/table.gif

Ya que tu expresión start...end cruza múltiples celdas de una fila de la tabla de la plantilla, AppSheet siempre agregará una fila nueva por cada registro de cantidad/part number/producto/serial--tal como @SkrOYC lo ha explicado.

Si no funciona la técnica que sugerí de incorporar una tabla de varias columnas dentro de la celda mayor, quizás probando combinar las dos columnas consigues lo que necesitas. Podrías separar los valores con la tecla de tabulación.

 

dbaum_1-1663384383892.png

What you may simply want is to remove the cell borders--that might achieve the display you're seeking.

Alternatively, try embedding another table within the minimum-height table cell. For example:

dbaum_0-1663355387981.png

 

Thanks for your answer, but it doesn't work 😞

I tried to place a pic of the invoice in the background, error in appsheet, watermark does not work either.

In MSWORD is very easy to do it, just have to specify the size of the table and that's it.

Any other solution?

Thanks!

https://i.ibb.co/sPLjpFH/table.gif

Gracias por tu respuesta, pero no funciona 😞
Intenté colocar una imagen del invoice de fondo, error en appsheet, marca de agua tampoco funciona.
En MSWORD es muy facil hacerlo, solo hay que especificar el tamaño de la tabla y listo.

Alguna otra solucion?
Gracias!

 

Maybe I misunderstood the issue you're facing. In both MS Word and Google Docs it's indeed easy to specify the height of a table row. For example, here's where to do that in Docs:

dbaum_0-1663372390113.png

 

I thought the issue you are trying to overcome is that you want the multiple rows output from AppSheet to appear without internal borders in between but still outlined with an external border. Try posting a screenshot of your desired finished product. Several community contributor--especially @SkrOYC who already replied--are template experts and if there's a way to accomplish what you need they'll know.

Thanks! @dbaum 

This was the solution, place a table inside another table with white frames.
I didn't understand it until I made several practices with the "Minimum Row Height" option in 15 cm and it was perfect. The only thing I lose is the line of the "Quantity" column that separated both columns, it was also perfect.

Obs: What you see in Google Docs is not what is generated ‌in Appsheet 😁


Gracias!! @dbaum 

Esta era la solucion, colocar una tabla dentro de otra tabla con los marcos blancos. No lo entendia hasta que hice varias practicas con la opcion "Minimun Row Height" en 15 cm y quedo perfecto.
Lo unico que pierdo es la linea de la columna "Cantidad" que separaba ambas columnas, igualmente quedo perfecto.

Obs: Lo que ves en Google Docs no es lo que se genera en Appsheet 😁