找回密码
 立即注册

QQ登录

只需一步,快速开始

Vdentta

注册会员

3

主题

8

帖子

25

积分

注册会员

积分
25
最新发帖
Vdentta
注册会员   /  发表于:2018-5-24 15:03  /   查看:4159  /  回复:2
图片无法在打印预览显示。为表头预留足够了 能放下图片的marginTop
请问路径是绝对路径 还是相对路径?
表头 文字 倒是可以显示,不过不满足需求。

  1. printInfo.headerCenterImage('/static/img/printCenter.png');
  2.       printInfo.headerRightImage('/static/img/printRight.png');
  3.       printInfo.margin({
  4.         left:0,
  5.         right:0,
  6.         top:100,
  7.         bottom:0,
  8.         header:0,
  9.         footer:0
  10.       })
复制代码
QQ图片20180524150004.png






2 个回复

倒序浏览
Vdentta
注册会员   /  发表于:2018-5-24 15:29:12
推荐
。。。。明白了,原来要先用 占位符申明啊。。。

比如右边要图片,就先要右边申明
printInfo.headerRight("&G");

http://www.grapecity.com.cn/blogs/spreadjs-print-info
你们这个网站的说明 太模糊了。。。
回复 使用道具 举报
Clark.Pan讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2018-5-24 17:34:39
板凳
嗯,是的需要用占位符
您说的这个地址上面有写,不过是在前面写的
image.png987341003.png
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部