Jump to content

UNIURLFrame mi Yazıcıya Gönderme


alp.yilmaz

Recommended Posts

Merhaba Arkadaşlar UniUrlFrame Nesnesi içerisinde Bulunan HTML Kodunu Yazıcıya Göndermek istiyorum. Başaramadım.

Form da Bulduğum Kod Düzgün Çalışmıyor.

Bu Kodu Çalıştırabilen arkadaş varmıdır.

 

Teşekkür Ederim.

 

 

In the Form.Script:

function zPrint(oTgt){
oTgt.focus();
oTgt.print();
}

function printIframe(id)
{
var iframe = id;
var ifWin = iframe.contentWindow || iframe; // the change
zPrint(ifWin);
return false;
}



In the button.ExtEvents.OnClick:

function OnClick(sender, e)
{
var frm = UniFormShowLink.UniURL1.iframe;

if (frm) {
printIframe(frm);
}
}

 

Link to comment
Share on other sites

Arkadaşlar Çalıştı Yaptığım Hatayı Fark Ettim..

function OnClick(sender, e)
{
var frm = UniFormShowLink.UniURL1.iframe;    // Renk Yazdığım Yerdeki Kırmızı Sizin Formunuz Adı Olacak , Yeşil Kısımda uniURLFrame me Verdiğiniz isim Olacak.

if (frm) {
printIframe(frm);
}
}

Link to comment
Share on other sites

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...