打印机纸张打出来皱出来的纸张出现undefined打印机纸张打出来皱预览?

HP7000打印机预览和打印的不一样怎么回事,预览的时候是充满纸张的,可打出来就是一半的图
内容为广告/垃圾,我要举报!
特聘专家具有协助内容审核的特权
举报后内容将不能在前台展示
错乱举报会导致该权利被剥夺
选择举报原因&
已有1个回答
[见习专家]
专家星级&:&0.5星
问答堂专家综合评分
问题评分&:&0星
采纳、点赞&:&0星
二次回复率&:&5星
内容为广告/垃圾,我要举报!
特聘专家具有协助内容审核的特权
举报后内容将不能在前台展示
错乱举报会导致该权利被剥夺
选择举报原因×
首先确认使用软件打印 打印图片还文档 打印纸张A4还A3或者其特殊大小纸张 首选项里面需要设置纸张大小软件里面也需要设置纸张大小实行还更换软件尝试尽管我与惠普共事我此发言并代表惠普只代表我自己
留下你的评论
办公市场上,新品上市之初的官方指导价与实际售价往往差距不大,只有经历一段时间之后才会出现一定的差距,不过也有例外。惠普推出新一代经典HP Officejet 7000 ...
微信公众账号ZOL问答堂
关注微信,随时随地解答您的疑惑
ZOL问答堂官方微博@ZOL问答堂
关注成功!该问题被回答后,将给您发送站内短信。
您也可以通过关注问答堂微信,及时获得您关注问题的回答。
微信关注问题方法“”app.rpc打印出来是undefined(重新排版) - Pomelo Club
app.rpc打印出来是undefined(重新排版)
handler代码如下:
module.exports = function(app) {
return new Handler(app);
var Handler = function(app) {
this.app =
* client login
request message
session current session object
{Function} next
next stemp callback
* @return {Void}
Handler.prototype.login = function(msg, session, next) {
console.log(&---------pomelo.app.rpc.user--------& + this.app.rpc);
this.app.rpc.user.userRemote.login(msg.username, msg.password, function(err, user) {
console.log(&---------in remote login body--------&);
next(null, {
next(null, {
打印出来是undefined的,如果打印this.app就是object
换成2行打印你看看:console.log(&---------pomelo.app--------&);console.log(this.app);然后你看里面的rpc是什么。
这是打印的内容,上面有些部分被覆盖,命令窗口看不到,我看了下,总共出现三个“rpc”的地方:
configure: [Function],
registerAdmin: [Function],
use: [Function],
transaction: [Function],
getMaster: [Function],
getCurServer: [Function],
getServerId: [Function],
getServerType: [Function],
getServers: [Function],
getServersFromConfig: [Function],
getServerTypes: [Function],
getServerById: [Function],
getServerFromConfig: [Function],
getServersByType: [Function],
isFrontend: [Function],
isBackend: [Function],
isMaster: [Function],
addServers: [Function],
removeServers: [Function],
replaceServers: [Function],
addCrons: [Function],
removeCrons: [Function],
[ { app: [Circular], opts: [Object], client: [Object] },
{ app: [Circular], opts: [Object], remote: [Object] },
{ app: [Circular],
service: [Object],
addLoginedUser: [Function],
increaseConnectionCount: [Function],
removeLoginedUser: [Function],
decreaseConnectionCount: [Function],
getStatisticsInfo: [Function] },
{ app: [Circular],
dict: [Object],
abbrs: [Object],
userDicPath: &D:\\node\\pomelo_ij100_as\\game-server\\config\\dictionary
{ app: [Circular],
serverProtos: {},
clientProtos: {},
version: 0,
serverProtosPath: &/config/serverProtos.json&,
clientProtosPath: &/config/clientProtos.json& },
{ app: [Circular],
connector: [Object],
encode: undefined,
decode: undefined,
useCrypto: undefined,
server: [Object],
session: [Object],
connection: [Object] },
{ app: [Circular],
service: [Object],
create: [Function],
bind: [Function],
unbind: [Function],
get: [Function],
getByUid: [Function],
remove: [Function],
import: [Function],
importAll: [Function],
kick: [Function],
kickBySessionId: [Function],
sendMessage: [Function],
sendMessageByUid: [Function],
forEachSession: [Function],
forEachBindedSession: [Function] },
{ app: [Circular], scheduler: [Object] },
{ app: [Circular], name: &__backendSession__& },
{ app: [Circular],
channels: {},
broadcastFilter: undefined,
name: &__channel__& },
{ server: [Object] },
{ monitor: [Object] } ],
components:
{ __proxy__: { app: [Circular], opts: [Object], client: [Object] },
__remote__: { app: [Circular], opts: [Object], remote: [Object] },
__connection__:
{ app: [Circular],
service: [Object],
addLoginedUser: [Function],
increaseConnectionCount: [Function],
removeLoginedUser: [Function],
decreaseConnectionCount: [Function],
getStatisticsInfo: [Function] },
__dictionary__:
{ app: [Circular],
dict: [Object],
abbrs: [Object],
userDicPath: &D:\\node\\pomelo_ij100_as\\game-server\\config\\dictionar
__protobuf__:
{ app: [Circular],
serverProtos: {},
clientProtos: {},
version: 0,
serverProtosPath: &/config/serverProtos.json&,
clientProtosPath: &/config/clientProtos.json& },
__connector__:
{ app: [Circular],
connector: [Object],
encode: undefined,
decode: undefined,
useCrypto: undefined,
server: [Object],
session: [Object],
connection: [Object] },
__session__:
{ app: [Circular],
service: [Object],
create: [Function],
bind: [Function],
unbind: [Function],
get: [Function],
getByUid: [Function],
remove: [Function],
import: [Function],
importAll: [Function],
kick: [Function],
kickBySessionId: [Function],
sendMessage: [Function],
sendMessageByUid: [Function],
forEachSession: [Function],
forEachBindedSession: [Function] },
__pushScheduler__: { app: [Circular], scheduler: [Object] },
__backendSession__: { app: [Circular], name: &__backendSession__& },
__channel__:
{ app: [Circular],
channels: {},
broadcastFilter: undefined,
name: &__channel__& },
__server__: { server: [Object] },
__monitor__: { monitor: [Object] } },
{ base: &D:\\node\\pomelo_ij100_as\\game-server&,
env: &development&,
master: { id: &master-server-1&, host: &127.0.0.1&, port: 3005 },
servers: { connector: [Object], user: [Object] },
__serverMap__: { &connector-server-1&: [Object], &user-server-1&: [Object]
main: &D:\\node\\pomelo_ij100_as\\game-server\\app.js&,
serverType: &connector&,
serverId: &connector-server-1&,
mode: &clusters&,
curServer:
{ main: &D:\\node\\pomelo_ij100_as\\game-server\\app.js&,
env: &development&,
id: &connector-server-1&,
host: &127.0.0.1&,
port: 8150,
clientPort: 8010,
frontend: &true&,
serverType: &connector& },
name: &pomelo_ij100_as&,
{ host: &192.168.1.211&,
port: &3308&,
database: &queendb&,
user: &root&,
password: && },
{ init: [Function],
shutdown: [Function],
insert: [Function],
update: [Function],
delete: [Function],
query: [Function] },
__routes__: { user: [Function] },
connectorConfig:
{ connector: [Object],
heartbeat: 3,
useDict: true,
useProtobuf: true },
sessionService:
{ app: [Circular],
service: [Object],
create: [Function],
bind: [Function],
unbind: [Function],
get: [Function],
getByUid: [Function],
remove: [Function],
import: [Function],
importAll: [Function],
kick: [Function],
kickBySessionId: [Function],
sendMessage: [Function],
sendMessageByUid: [Function],
forEachSession: [Function],
forEachBindedSession: [Function] },
backendSessionService: { app: [Circular], name: &__backendSession__& },
localSessionService: { app: [Circular], name: &__backendSession__& },
channelService:
{ app: [Circular],
channels: {},
broadcastFilter: undefined,
name: &__channel__& },
__modules__:
{ __watchdog__: [Object],
watchServer: [Object],
__console__: [Object] },
rpcInvoke: [Function] },
base: &D:\\node\\pomelo_ij100_as\\game-server&,
{ domain: null,
{ add_servers: [Function],
remove_servers: [Function],
replace_servers: [Function],
add_crons: [Function],
remove_crons: [Function],
start_server: [Function] },
_maxListeners: 10 },
serverId: &connector-server-1&,
serverType: &connector&,
curServer:
{ main: &D:\\node\\pomelo_ij100_as\\game-server\\app.js&,
env: &development&,
id: &connector-server-1&,
host: &127.0.0.1&,
port: 8150,
clientPort: 8010,
frontend: &true&,
serverType: &connector& },
startTime: 7,
master: { id: &master-server-1&, host: &127.0.0.1&, port: 3005 },
{ &connector-server-1&:
{ main: &D:\\node\\pomelo_ij100_as\\game-server\\app.js&,
env: &development&,
id: &connector-server-1&,
host: &127.0.0.1&,
port: 8150,
clientPort: 8010,
frontend: &true&,
serverType: &connector&,
pid: 4712 } },
serverTypeMaps: { connector: [ [Object] ] },
serverTypes: [ &connector& ],
lifecycleCbs: {},
clusterSeq: {},
env: &development&,
main: &D:\\node\\pomelo_ij100_as\\game-server\\app.js&,
mode: &clusters&,
sessionService:
{ app: [Circular],
service: { singleSession: undefined, sessions: [Object], uidMap: {} },
create: [Function],
bind: [Function],
unbind: [Function],
get: [Function],
getByUid: [Function],
remove: [Function],
import: [Function],
importAll: [Function],
kick: [Function],
kickBySessionId: [Function],
sendMessage: [Function],
sendMessageByUid: [Function],
forEachSession: [Function],
forEachBindedSession: [Function] },
backendSessionService: { app: [Circular], name: &__backendSession__& },
localSessionService: { app: [Circular], name: &__backendSession__& },
channelService:
{ app: [Circular],
channels: {},
broadcastFilter: undefined,
name: &__channel__& },
rpc: [Getter],
sysrpc: [Getter],
rpcInvoke: [Function] }
看上去很正常啊。你有什么问题?
因为rpc是undefinde,所以这一句就报错了
this.app.rpc.user.userRemote.login
this.app.rpc.user.userRemote.login
你有user这个服务器吗?到user的route函数正确吗?
你的user服务器启动成功了么= =
app.servers里只看到connector,虽然你的setting里配置了user,但明显没有启动成功
rpc为undefined的原因是你只成功启动connector服务器,而这个服务器没有remote,没有生成user(与sys对应的那个,不是楼主的user服务器),导致rpc的getter
//lib/components/proxy.js #93
this.app.__defineGetter__(&rpc&, function() {
return self.client.proxies.
返回undefined
我在servers.json里面配置了:
&development&:{
&connector&: [
{&id&: &connector-server-1&, &host&: &127.0.0.1&, &port&: 8150, &clientPort&: 8010, &frontend&: true}
{&id&: &user-server-1&, &host&: &127.0.0.1&, &port&: 8160, &clientPort&: 8020, &frontend&: true}
&production&:{
&connector&: [
{&id&: &connector-server-1&, &host&: &127.0.0.1&, &port&: 8150, &clientPort&: 8010, &frontend&: true}
{&id&: &user-server-1&, &host&: &127.0.0.1&, &port&: 8160, &clientPort&: 8020, &frontend&: true}
但是我app里面没有config,可以吗,app.js代码如下:
var pomelo = require(&pomelo&);
var routeUtil = require(&./app/util/routeUtil&);
* Init app for client.
var app = pomelo.createApp();
app.set(&name&, &pomelo_ij100_as&);
app.loadConfig(&mysql&,
app.getBase() + &/config/mysql.json&);
// app configuration
app.configure(&production|development&, function(){
var dbclient = require(&./app/dao/mysql/mysql&).init(app);
app.set(&dbclient&, dbclient);// route configures
app.route(&user&, routeUtil.user);
app.configure(&production|development&, &connector&, function(){
app.set(&connectorConfig&,
connector : pomelo.connectors.hybridconnector,
heartbeat : 3,
useDict : true,
useProtobuf : true
// start app
app.start();
process.on(&uncaughtException&, function (err) {
console.error(& Caught exception: & + err.stack);
我如果在app.js里面也config了user,启动就会报如下错误:
噢,查了下,server register master failed是因为我在adminServer.json里面没配置
好了,我在adminServer.json里面配置了下就没问题了,是不是就是每添加个服务器都需要在里面配置了才可以
user server没启动成功
开发没必要那么麻烦, 直接把adminServer.json删了, 到最后在配置
adminServer.json的作用是什么,我刚接触pomelo,这个问题不会太白痴吧
@ 防止其他服务器恶意加入你的服务器
@ 明白了,谢谢打印出来的纸张出现undefined打印预览?_百度知道
打印出来的纸张出现undefined打印预览?
jpg" target="_blank" title="点击查看大图" class="ikqb_img_alink"><img class="ikqb_img" src="<a href="/zhidao/wh%3D600%2C800/sign=/zhidao/pic/item/a20a4bac43e0ed00e.baidu&nbsp.baidu.jpg" esrc="http.baidu://e.hiphotos://e://e.com/zhidao/wh%3D450%2C600/sign=ddd88fec7cec54e741bb766/a20a4bac43e0ed00e.hiphotos.hiphotos
我有更好的答案
如不是,你再找一找,你将打印机多关一会.试试看可能有小纸肖还没取出
其他类似问题
为您推荐:
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁应用web化,不论对开发商,还是对用户来说,实在是一种很经济的选择,因为基于web的应用,客户端的规则很简单,容易学习,容易维护,容易发布。但对程序员来说,因为浏览器的局限性,却要面对很多挑战。怎么样来进行基于web的套打,就是这么一个令多数程序员头痛不已的问题。
基于web的套打,难度在于要将浏览器中呈现的html,精确地打印到票据中,而且能够实现对分页位置的控制。下面就ie浏览器所能采用的套打解决方案,来个汇总分析,希望对大家有所帮助。
jatoolsPrinter 是一款实现网页套打的免费工具。该工具的特点是可以直接对web页面进行精确的分页打印,这不仅使“会设计网页就会做网页套打”成为可能,也使项目经理们摆脱了预算紧张的压力。jatoolsPrinter通过在网页中嵌入控件,解决了web客户端精确打印,批量打印,打印配置自动保留等问题。jatoolsPrinter 官方正式免费版,支持ie6+,。
功能特点:
真正免费,不加水印,没有ip或域名限制,不限时间,兼容ie6+
无须注册,下载即用
提供经过微软数字签名的cab自动安装包,安装更方便
长期升级保障,免费论坛支持,让你无后顾之忧
稳定可靠,启动速度远胜同类产品
常用功能集于一身,简约而不简单,软件大小只有84k
本文主要介绍jatoolsPrinter打印控件来完成web的打印功能,这个控件已经把打印功能封装的非常好,主要是把这个控件引入,之后写一些简单的js代码就能完成相应的打印功能。
&!DOCTYPE html PUBLIC &-//W3C//DTD XHTML 1.0 Transitional//EN& &http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&&
&html xmlns=&http://www.w3.org/1999/xhtml&&
&head runat=&server&&
&title&&/title&
&!-- 插入打印控件 --&
&object id=&jatoolsPrinter& classid=&CLSID:B43DBE2-87FE-&
codebase=&jatoolsPrinter.cab#version=5,7,0,0&&
&script type=&text/javascript&&
function doPrint(how) {
//打印文档对象
var myDoc = {
documents: document,
// 打印页面(div)们在本文档中
copyrights: '杰创软件拥有版权
// 版权声明必须
// 调用打印方法
if (how == '打印预览...')
jatoolsPrinter.printPreview(myDoc);
// 打印预览
else if (how == '打印...')
jatoolsPrinter.print(myDoc, true);
// 打印前弹出打印设置对话框
jatoolsPrinter.print(myDoc, false);
// 不弹出对话框打印
&form id=&form1& runat=&server&&
&div id='page1' style='width:300height:300'&
&input type=&button& value=&打印预览...& onclick=&doPrint('打印预览...')&/&
&input type=&button& value=&打印...& onclick=&doPrint('打印...')&/&
&input type=&button& value=&打印& onclick=&doPrint('打印')&/&
主要分几个步骤:
一、引入打印控件jatoolsPrinter
&!-- 插入打印控件 --& &object id=&jatoolsPrinter& classid=&CLSID:B43DBE2-87FE-& codebase=&jatoolsPrinter.cab#version=5,7,0,0&& &/object&
二、给要打印的div取id名
三、编写js代码实现打印div的功能
(注意:在同一页面中,有多个可打印文档,他们可以用page_div_prefix属性来区别page_div_prefix前缀+page+页序号 构成可打印div的id,如前缀为 'report1' ,则找到以 'report1page1'为id的div作为文档首页该属性,默认值为空)
注意事项:
1. 控件在打印指定div对象时,如果纸张太小不够打印时,超出部分将被截掉(clip)。
2. 被指定的div中的内容,可以是html任何可见对象,图片,flash,或文本等等。
3. 控件打印时,边距可设,不设则取打印机默认值。
4. div的id必须连续,如果你的div,存在 'page1'、'page2'、'page4',而不存在'page3',则控件只打印前两页,'page4'不会被打印。
5. div对象在页面中的位置,可以是随意的,比如,page1显示在page2后面,也是合法的。
6. 指定的div会被打印,没被指定的html元素将不会被打印,比如,本示例中的‘打印’按钮,不会被打印。
7. copyrights属性是版权信息,必须写。
阅读(...) 评论()}

我要回帖

更多关于 打印预览纸张大小 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信