Printint Dynamic Data


i creating pages dynamic data. not know how many pages printed until query parameters selected user.

i using printjob() process.

i movie per page using createemptymovieclip()

i format page selected data , based on amount of data necessary create additional movies , lay out data.

this layout created looping through query results , impossible sure how many pages needed. process of creating movies , formatting data works fine.

the issus adding pages print. have tried complete addpage process in loop. works if there 1 page process crashes if there more 1 page.

this code

(l=1; l<(pagecount+1); ++l) {
print1_mc.createtextfield("pg_txt",print1_mc.getnexthighestdepth(),80,750,65,20);
print1_mc.pg_txt.text = "page:";
print1_mc.pg_txt.settextformat(title3_fmt);
print1_mc.createtextfield("page_txt",print1_mc.getnexthighestdepth(),120,750,40,20);
print1_mc.page_txt.text = pagecount;
print1_mc.page_txt.settextformat(detail_fmt);
my_pj.addpage(print1_mc);
pagestoprint++;
}
if (pagestoprint>0) {
my_pj.send();// print page(s)
}

help!!!!

please



More discussions in Adobe Animate CC - General


adobe

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62