CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

View: 2395|Reply: 9

Window.print()

[Copy link]
Post time 4-3-2008 09:08 AM | Show all posts |Read mode
aku ada satu soklan.. dalam java script Window.print() tu dipanggil untuk keluarkan window print tu kan..
so masalah aku ialah..
ada tak cara untuk kita control settingwindow print tu..
mcm skarang ni.. bos aku surh aku disablekan field "number of copies" tu (atau ape2 cara)
sebab die nak supaya user cume boleh print satu je dokumen tu...
Reply

Use magic Report


ADVERTISEMENT


Post time 4-3-2008 10:41 AM | Show all posts
kau try letak .print() tu dalam satu function..
dalam function tue lak..
kau set kan ar untuk disable kan field yang bos kau suruh..
then biler klik print..
dier pergi kat function tu...

sori ar kalau idea ni xmembantu.
Reply

Use magic Report

 Author| Post time 4-3-2008 12:28 PM | Show all posts

Reply #2 EAStudent's post

erm.. camne tu? hehee
Window.print ni aku just kol java script nye function je..

actually aku ade research2 kat google...
die ckp impossible nak manipulate setting window.print() ni, unless gune script or activeX??
tp camne la nak buat tu.. huhuhu

kot2 la org kat sini ade idea lain...

btw, thanks EAStudent...
boleh tak tunjuk contoh panggil function lain mcm yg ko cakapkan tu?
Reply

Use magic Report

Post time 4-3-2008 05:46 PM | Show all posts
maksud aku wat jer satu function dalam javascript
kat dalam function tue..
kau set kan ar disable paper..
bawah sekali..
kau call function print..
Reply

Use magic Report

 Author| Post time 5-3-2008 03:01 PM | Show all posts

Reply #4 EAStudent's post

erm... aku paham maksud ko tu..


contohnye mcm ni kan..
bile kite call Window.print() tu kan die akan kuar Printer dialox box (ko klik ikon printer kuarla box tu) tu...
dekat printer dialog box tu kan ade printer punye setting..
contoh, printer mane kite nak plilh, page range dan no of copies dokumen yang nak diprint...
so, the idea is, aku nak disablekan field number of copies tu supaya bilangan nye remain 1 ( user cume leh print 1 copy je)..
mcm ko cakap, panggil funtion lain kan..
kalau panggil function lain,ape kah argument yang aku perlu paskan @ gunakan supaya field tersebut haanye read only?

kirenye mcm aku kena manipulate Windows punye UI la ni
Reply

Use magic Report

Post time 6-3-2008 08:51 AM | Show all posts

Reply #5 ammameiya's post

rasanya kalau web based takde la semua benda tuh. kalau boss ko nak gak kena la buat dalam vb.
Reply

Use magic Report

Follow Us
 Author| Post time 6-3-2008 10:35 AM | Show all posts

Reply #6 khyrie's post

alahai.. ye ke??
thanks for replying... aku akan try carik solutionnye gak
Reply

Use magic Report

Post time 6-3-2008 11:49 AM | Show all posts

Reply #7 ammameiya's post

yup, ko try ar carik die nye ActiveX ke.. so stiap pc y akses sistm ko buat tu. msti kene dlod an install activeX tuh.
so baru ko leh ctrl y ko nak tu...
aku x pnah buat tp aku tau bende tu ada..
Reply

Use magic Report


ADVERTISEMENT


Post time 6-3-2008 03:27 PM | Show all posts
Try guna activeX utk printing ni:

http://www.meadroid.com/scriptx/
Reply

Use magic Report

 Author| Post time 7-3-2008 09:16 AM | Show all posts

Reply #9 choroque's post

thanks... baru nak belajar gune activeX ni
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT



 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

7-1-2025 06:53 AM GMT+8 , Processed in 0.219315 second(s), 23 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list