Jump to content

Recommended Posts

Posted

Hello, I have this function on the button to print and ITS WORK

 

function click(sender, e, eOpts)
{
 var frm = UniFPrint.UniURLFrame1.iframe;
 if (frm) {
 printIframe(frm);
 }
}

----------------------------

I want to do a conditional, how can I do?

 

function frameload(sender, frame, eOpts)
{
 var frm = UniFPrint.UniURLFrame1.iframe;
 var Imprimir = UniFPrint.UniEdit1.text;
 

 if (Imprimir ==  1){
 
 if (frm) {
 printIframe(frm);
 }
 }
}

Posted

I solved

 

function frameload(sender, frame, eOpts)
{
 var frm = UniFPrint.UniURLFrame1.iframe;
 var Imprimir = UniFPrint.UniEdit1.getValue();   

 if (Imprimir ==  1){   
 if (frm) {
 printIframe(frm);
 }
 }
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...