Community Forum

print preview a specific frame

Profile Image 1 Posts 1 Karma
JasonHarper posted this 16 October 2012

I have an html document with three sub frames called "header", "nav_bar", and "content".

I can print the entire "content" frame with onclick="top.sxPrintFrame(top.frames[2]);" but sometimes it might be 100-150 pages and enduser might not need all that.

I would like to be able to print preview the "content" frame so the customer can specify a page range.

onclick="top.MeadCo.ScriptX.PreviewFrame();"  winds up showing all three frames in the preview panel, is there some way I can specify just the "content" frame (pass it as a parameter or hard-code it as "content" because it is the only frame I will ever print)?

Mucho Thanks - Jason

Profile Image 23 Posts 23 Karma
Admin
petecole posted this 16 October 2012

Hi Jason,

Frame preview is a licensed function. If you have a licence, simply pass the name of the frame, or the frame object, as the argument to MeadCo.ScriptX.PreviewFrame(), e.g. MeadCo.ScriptX.PreviewFrame('content').

For those not using the wrappers, this is the equivalent of document.getElementById('factory').printing.Preview('content');

Regards

Pete Cole
MeadCo

Profile Image 1 Posts 1 Karma
Boris posted this 28 March 2014

This is highly confusing. The function is part of the free set, yet the parameter is licensed. See http://scriptx.meadroid.com/knowledge-bank/technical-reference/printing-factoryprinting/preview.aspx

I just spent a hour trying to find out why it didnt accept the frame parameter.

This is the only feature I want compared to the free set.

1000 a year is a bit much for 1 extra parameter. Is there a way i can get a custom license? or perhaps pay for a one-time tweeked set. I understand i wont get updates this way.

Profile Image 189 Posts 189 Karma
Jerry posted this 28 March 2014

Hi Boris

 

I'm afraid that the way that our licensing has always worked is free subset vs. *all* licensed functionality (with the exception of the list of cost-options), and no more granular than that.

 

As in your case, that's never going to suit everyone, and for that - and for the fact that we can't offer custom licensing - I can only apologise.

 

Jerry