I seem to be hitting a wall here with regards to swapping pages on my template.
I have a complex dynamic financial statement with charts. I want to swop certain pages so it appears that the charts move up and down. I basically have two versions that potentially will go to four versions. But right now I am dealing with a 11 page document. One version is called GBOO (Green, Blue, Org Student, Org Parent) the other version is GOO.
So I have GBOO pages as 1,2,3,4,6,8,10,11 and
GOO pages are 1,2,3,5,7,9,10,11
I want to swap the middle pages 4,6,8 with 5,7,9.
I have tried different codes based on my research on this forum.
Turning all the pages to Unused does not work, it just errors out. So this is what I came up with.
if (Field("version") == "GBOO")
{
FusionPro.Composition.SetBodyPageUsage("GBOO-4",true);
FusionPro.Composition.SetBodyPageUsage("GBOO-5",true);
FusionPro.Composition.SetBodyPageUsage("GBOO-6",true);
}
if (Field("version") == "GOO")
{
FusionPro.Composition.SetBodyPageUsage("GOO-7",true);
FusionPro.Composition.SetBodyPageUsage("GOO-8",true);
FusionPro.Composition.SetBodyPageUsage("GOO-9",true);}
else
{
FusionPro.Composition.SetBodyPageUsage("GBOO-4",true);
FusionPro.Composition.SetBodyPageUsage("GBOO-5",true);
FusionPro.Composition.SetBodyPageUsage("GBOO-6",true);
}
I have attached my template as well.
Let me know and I can attached my list as well, but not sure it will help. ASU FAN_GBOO Swop Pages.pdf