This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / how to change browser setting from javascript?not used to hack ppl's browser but just need to change the printer setting margin from javascript, any suggestion? Thank you.
(something before window.print())
-sunday8(sunday8);
2006-5-31
{163}
(#3001801@0)
-
Either use ActiveX or no-way, tertium non datur.
-canadiantire(轮胎-cui bono?);
2006-5-31
(#3001809@0)
-
looks like i have to give up my javascript approach..Thank you.
-sunday8(sunday8);
2006-5-31
(#3001956@0)
-
用HTML写上:Please change the margin to xxxx in your browser's print setting. 记着还得加上:Please change the setting back to the default when you leave this page. 要不然人家打印别的网页就乱了。是不是很霸道?你是不是还得要求用户必需适用A4打印纸,必需用一定尺寸字体?
不应该这么做的。
通常做法是提供PDF格式的文件,让用户下载打印。PDF 下打印SETTING是稳定可控制的。
-remember_me_not(r-m-n);
2006-5-31
{170}
(#3001815@0)
-
its cost to create pdf($ and time) ..I am looking for an economic solution for a minor problem..PDF is good.. but to create pdf could be headache without buying a server
pdf creator.
-sunday8(sunday8);
2006-5-31
(#3001852@0)
-
Actually, i think there is a third way which will cost your $0, --- build a browser of your own.
-canadiantire(轮胎-cui bono?);
2006-5-31
(#3001898@0)
-
:) i think you are going too far from the target..
-sunday8(sunday8);
2006-5-31
(#3001952@0)
-
actually i have the margin setting on the page, however, the printout margin is not the margin from the browser. Thank you.
-sunday8(sunday8);
2006-5-31
(#3001961@0)