<head>
<title>MeadCo's ScriptX: Print</title>
<!-- special style sheet for printing -->
<style media="print">
.noprint { display: none }
</style>
</head><body scroll="auto"><!-- MeadCo Security Manager - using evaluation license -->
<object viewastext style="display:none"
classid="clsid:5445be81-b796-11d2-b931-002018654e2e"
codebase="smsx.cab#Version=6,1,431,2">
<param name="GUID" value="{87530A67-6E2E-4991-8D2D-6F0208414B4B}">
<param name="Path" value="sxlic.mlf">
<param name="Revision" value="0">
</object><!-- MeadCo ScriptX -->
<object id="factory" viewastext style="display:none"
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814">
</object><script defer>
function window.onload() {
factory.printing.header = "MeadCo's ScriptX: Print"
factory.printing.footer = "The de facto standard for advanced web-based printing"
factory.printing.portrait = false
idPrint.disabled = false; // enable UI button
}function Print() {
factory.printing.Print(false); // no prompt
}
</script><p>Hello, world!</p><div class=noprint>
<hr>The button itself will not be printed:
<input id=idPrint disabled type="button" value="Print w/o prompt" onclick="Print()">
</div></body><script defer>
function SetPrintSettings() {
// -- advanced features
factory.printing.SetMarginMeasure(2); // measure margins in inches
factory.printing.printer = "HP DeskJet 870C";
factory.printing.paperSize = "A4";
factory.printing.paperSource = "Manual feed";
factory.printing.collate = true;
factory.printing.copies = 2;
factory.printing.SetPageRange(false, 1, 3); // need pages from 1 to 3 // -- basic features
factory.printing.header = "This is MeadCo";
factory.printing.footer = "Advanced Printing by ScriptX";
factory.printing.portrait = false;
factory.printing.leftMargin = 1.0;
factory.printing.topMargin = 1.0;
factory.printing.rightMargin = 1.0;
factory.printing.bottomMargin = 1.0;
}function Print(frame) {
factory.printing.Print(true, frame) // print with prompt
}
</script>
<title>MeadCo's ScriptX: Print</title>
<!-- special style sheet for printing -->
<style media="print">
.noprint { display: none }
</style>
</head><body scroll="auto"><!-- MeadCo Security Manager - using evaluation license -->
<object viewastext style="display:none"
classid="clsid:5445be81-b796-11d2-b931-002018654e2e"
codebase="smsx.cab#Version=6,1,431,2">
<param name="GUID" value="{87530A67-6E2E-4991-8D2D-6F0208414B4B}">
<param name="Path" value="sxlic.mlf">
<param name="Revision" value="0">
</object><!-- MeadCo ScriptX -->
<object id="factory" viewastext style="display:none"
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814">
</object><script defer>
function window.onload() {
factory.printing.header = "MeadCo's ScriptX: Print"
factory.printing.footer = "The de facto standard for advanced web-based printing"
factory.printing.portrait = false
idPrint.disabled = false; // enable UI button
}function Print() {
factory.printing.Print(false); // no prompt
}
</script><p>Hello, world!</p><div class=noprint>
<hr>The button itself will not be printed:
<input id=idPrint disabled type="button" value="Print w/o prompt" onclick="Print()">
</div></body><script defer>
function SetPrintSettings() {
// -- advanced features
factory.printing.SetMarginMeasure(2); // measure margins in inches
factory.printing.printer = "HP DeskJet 870C";
factory.printing.paperSize = "A4";
factory.printing.paperSource = "Manual feed";
factory.printing.collate = true;
factory.printing.copies = 2;
factory.printing.SetPageRange(false, 1, 3); // need pages from 1 to 3 // -- basic features
factory.printing.header = "This is MeadCo";
factory.printing.footer = "Advanced Printing by ScriptX";
factory.printing.portrait = false;
factory.printing.leftMargin = 1.0;
factory.printing.topMargin = 1.0;
factory.printing.rightMargin = 1.0;
factory.printing.bottomMargin = 1.0;
}function Print(frame) {
factory.printing.Print(true, frame) // print with prompt
}
</script>
解决方案 »
- 在HTML中,<iframe scr="http://www.google.com.hk/" ></iframe>
- 发布网站到服务器上后,只能打开首页,其他任何页面都打不开
- 纯html中写C#代码...
- 在模态对话框中无法执行ASP.NET事件
- 请问如何指向GridView的Template中的对象?
- 有谁用过《asp.net高级编程 发现问题-提出问题-解决问题》,项目打不开
- 用DataGrid更新数据库出现了错误,请大家帮我看看,内有代码
- GridView嵌套问题 Nested GridView
- 本人的.NET2005群!欢迎对NET感兴趣的各界高手加入!31219549
- AjaxPro使用Session中,第一次可以,提交后就不行了?怎么回事
- 在asp.net页面里面,如何动态通过c#代码画出一个流程图,不能是预先做好的图形?
- 如何将字符串“label1"转换成label控件
ActiveSheet.PageSetup.Orientation = 2
孟子提供的我试了,不成功
set conexcel = new ActiveXObject("Excel.Application");
set consheet = conexcel.Worksheets[1];
consheet.Activate();
consheet.PageSetup.PaperSize = 9
consheet.PageSetup.Orientation = 2
其实,你只要会使用Microsoft Office中的“宏”,跟踪你的操作,即可找到相应的操作,然后“翻译”到你的脚本中即可
我已经成功解决过,有问题欢迎跟我联系:[email protected]