If you use it in OnRecordStart and set both pages to "unused" by default, you could use it in a way to turn on the page, then push the graphic to the frame, which should be named the same as the page.
function P_or_L(graphic_res)
{
var tm = new FusionProTextMeasure;
tm.CalculateTextExtent(graphic_res.content);
if (tm.textHeight > tm.textWidth)
return "Portrait";
else
return "Landscape";
}
var my_image = CreateResource("photo.jpg", "graphic", true);
var versio
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Recommended Posts
Posted by ThomasLewis,
Great answer!
Recommended by Dan Korn
0 reactions
Go to this post
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.