الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

كيف اغير هالكود ليلبي طلبي

مغلق
بدأه بسمة في 25 ديسمبر 2002 · 2 رد · 611 مشاهدة · في JavaSE
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

هذا كود جافا سكربت:) يقوم بعمل تشغيل الويزرد تبع الطباعه بدون مانكتب مكان تخزين الطابعه

أريد تغير هذا الكود ليقوم بقتح السكانر وليس طابعه

لإني حصلت اشياء مثل class id مافهمت ايش يقصدون فيها

function printit(){

if (window.print) {

window.print() ;

} else {

var WebBrowser = '';

document.body.insertAdjacentHTML('beforeEnd', WebBrowser);

WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box WebBrowser1.outerHTML = "";

}

}

var NS = (navigator.appName == "Netscape");

var VERSION = parseInt(navigator.appVersion);

if (VERSION > 3) {

printit();

}

#2

The code can not be customised to work with the scanner because it is an independant programme while the printer can be controled from IE.Your code is a javascript function calling methods on the IE ActiveX control to run the printer.

I have tried to find a solution to your problem but unfortunately there is no built-in support for reading Windows Registry and that's becuase Java is plateform independant.There are some solutions but it would be useless to use them since your objective is to run scanner regardless of the path.

Try to install the scanner in the same path in all computers and use the applet I gave you OR if you are not in a hurry, I will try to find an ActiveX solution for you

Madani

#3

مرحبا

مو مستعجله كثير تيك يور تايم,, مابيدي حل ثاني

وهذا جزء معين من بروجكت

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

انا ماعندي خلفيه تماما عنasp.net

لكن حسب ماقرات إنها تكتب بلغه الفيجوال بيسك,,

والفيجوال بيسك يوجد امر يقدر يشغل السكانر,, مادري هالشي ينفع او لا

تحياتي لك

هذا الموضوع مغلق.

مواضيع مشابهة