为什么它转换为xps [英] why it is converting to xps

查看:82
本文介绍了为什么它转换为xps的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

$(#convert)。click(function printPartOfPage(jqxChart){

var printContent = document.getElementById('jqxChart');

var gridcontent = document.getElementById('jqxgrid');

var windowUrl ='about:blank';

var windowName ='Print';

var printWindow = window.open(windowUrl,windowName,'left = 50000,top = 50000,width = 0,height = 0');

printWindow.document.write(printContent.innerHTML);

printWindow.document.close();

printWindow.focus();

printWindow.print();

printWindow.close();

});



无法转换为pdf它保存为xps文件。请有人帮我。

任何人都可以帮我转换为pdf

解决方案

JavaScript的打印方法od用于打印用于所选(默认)打印机的窗口内容!

因此,如果您安装了办公室,您还安装了xps打印机,缺少其他打印机将默认值。

尝试安装一些pdf打印机( CutePDF Writer [< a href =http://www.cutepdf.com/products/cutepdf/writer.asptarget =_ blanktitle =New Window> ^ ])并在打印时选择它...... / BLOCKQUOTE>

$("#convert").click(function printPartOfPage(jqxChart) {
var printContent = document.getElementById('jqxChart');
var gridcontent = document.getElementById('jqxgrid');
var windowUrl = 'about:blank';
var windowName = 'Print';
var printWindow = window.open(windowUrl, windowName, 'left=50000,top=50000,width=0,height=0');
printWindow.document.write(printContent.innerHTML);
printWindow.document.close();
printWindow.focus();
printWindow.print();
printWindow.close();
});

unable to convert to pdf it is saving as xps file.Please anyone could help me.
Can anyone help me to convert to pdf

解决方案

JavaScript's print method used to print the content of the window on which used to the selected (default) printer!
So if you have office installed you also have a xps printer installed, that in lack of other printers will be the default.
Try to install some pdf printer (CutePDF Writer[^]) and select it when printing...


这篇关于为什么它转换为xps的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆