Copy link to clipboard
Copied
Hi all, I'm having a CSV file which has 4 rows for the respective template in the attached file. But when i try to run the script it is not placing row1 in one frames and row2 in other. Could any suggest whats the best way to do this.. Thank you
Copy link to clipboard
Copied
Hi @Pradeep Reddy33668770rus6, please post the script and a demo .indd file so we can see what's going wrong.
- Mark
Copy link to clipboard
Copied
Below is the code, CSV and indd template. Thank you
Copy link to clipboard
Copied
I'm unable to think of a way where i could fill CSV rows into particular template. Please advice if you know ay. Thank you
Copy link to clipboard
Copied
Your code is always referring to elements on the 1st page:
myDocument.pages[0]
When you are adding pages - you should take this into account.
The easiest way would be to index by "-1"
myDocument.pages[-1]
but then it's not guaranteed that order of the elements will be the same as on the 1st page, so this part of the code may not work on newly added pages: