Hi all, I'm working on a script that edits an invoice using data from a spreadsheet. The initial script works. I am now trying to change the layout. At the moment, everything that is created is aligned to the left, I am trying to set some information to a right align. I've tried to use .setAlignment(DocumentApp.HorizontalAlignment.RIGHT) but it won't work as RIGHT is not defined according to the error code. I am a beginner coding wise so I'm really stuck. You can find my code in attached files (I should actually say someone else codes that I've used and modified a little, but I don't remember the source). Thank you very much |
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/70ab628b-ecd1-45bf-948c-9582d4811799%40googlegroups.com.
body.appendParagraph("KVAR LOCATION").setAlignment(DocumentApp.HorizontalAlignment.RIGHT);Hi Alex,Thanks for your answer !here's a copy of the script
Le lun. 9 mars 2020 à 18:15, Alex <oshl...@gmail.com> a écrit :
Hi Flotte!--It works fine https://github.com/contributorpw/google-apps-script-snippets/blob/master/snippets/docs/horizontal_align_samples/index.jsCould you share a real sample (not a pic)?Best, Alex.
On Monday, March 9, 2020 at 3:38:53 PM UTC+3, Flotte FLOTTE wrote:
Hi all,
I'm working on a script that edits an invoice using data from a spreadsheet. The initial script works. I am now trying to change the layout. At the moment, everything that is created is aligned to the left, I am trying to set some information to a right align. I've tried to use .setAlignment(DocumentApp.HorizontalAlignment.RIGHT) but it won't work as RIGHT is not defined according to the error code.
I am a beginner coding wise so I'm really stuck.
You can find my code in attached files (I should actually say someone else codes that I've used and modified a little, but I don't remember the source).
Thank you very much
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-community+unsub...@googlegroups.com.