找回密码
 立即注册

QQ登录

只需一步,快速开始

hand

注册会员

11

主题

37

帖子

128

积分

注册会员

积分
128

活字格认证

hand
注册会员   /  发表于:2017-9-26 16:35  /   查看:3720  /  回复:8
本帖最后由 hand 于 2017-9-26 17:33 编辑

使用FpSpread打印报表,在打印结果中网址乱掉了。
fpSpread.ActiveSheetView.PrintInfo.Footer = "/fb1/fz""10.5""/g""0""baidu Elevator Ltd./n/fz""7.5""http://www.baidu-lift./co.in/about/contact.html"


预想打印结果
baidu Elevator Ltd.
http://www.baidu-lift./co.in/about/contact.html

错误结果(标红部分,前后不一致)
baidu Elevator Ltd.
http:/www.baidu-lift.co.in/about       ontact.html


8 个回复

倒序浏览
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2017-9-27 11:10:14
沙发
您好,可否描述下您是怎么打印的,最好提供下可以重现的代码
回复 使用道具 举报
hand
注册会员   /  发表于:2017-9-27 11:51:18
板凳
dexteryao 发表于 2017-9-27 11:10
您好,可否描述下您是怎么打印的,最好提供下可以重现的代码

Dim result = dba.ExecuteSelect(sql.ToString())

Dim CompanyName = DirectCast(result(0), M_CompanyEntity).Name_EN
Dim SOPrintLine1 = DirectCast(result(0), M_CompanyEntity).SOPrintLine1
Dim SOPrintLine2 = DirectCast(result(0), M_CompanyEntity).SOPrintLine2
Dim SOPrintLine3 = "http://www.baidu-lift.com/about/contact.html"
Dim SOPrintLine4 = DirectCast(result(0), M_CompanyEntity).SOPrintLine4

Dim CompanyInfoMaster As String = "/fb1/fz""10.5""/g""0""{0}/n/fz""7.5""                    {1}/n/fz""7.5""                    {2}/n/fz""7.5""                    {3}/n/fz""7.5""                    {4}"
Dim CompanyInfo = String.Format(CompanyInfoMaster, CompanyName, SOPrintLine1, SOPrintLine2, SOPrintLine3, SOPrintLine4)

fpSpread.ActiveSheetView.PrintInfo.Footer = CompanyInfo

预想结果打印出来SOPrintLine3 的显示内容应为 : http://www.baidu-lift.com/about/contact.html

实际显示内容为:http://www.baidu-lift.com/about       ontact.html
"/c" 变成了转义符

请告知怎么解决这个问题。
回复 使用道具 举报
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2017-9-27 17:01:45
地板
明白了。“/c”,是一个特殊的转移字符。居中的意思。
您用// 替换下 /
回复 使用道具 举报
hand
注册会员   /  发表于:2017-9-28 09:44:19
5#
dexteryao 发表于 2017-9-27 17:01
明白了。“/c”,是一个特殊的转移字符。居中的意思。
您用// 替换下 /

预想打印结果:[url=][/url]http://www.baidu-lift.com/about/contact.html
添加了一个“/”后:http://www.baidu-lift.com/bout//contact.html
实际打印结果如图。

显示内容:
                                                           ontact.html
前面的全都没有了
キャプチャ.PNG
回复 使用道具 举报
hand
注册会员   /  发表于:2017-9-28 14:45:51
6#
有人能解决一下这个问题吗?
回复 使用道具 举报
hand
注册会员   /  发表于:2017-9-28 16:28:29
7#
有人能解决一下这个问题吗?
回复 使用道具 举报
hand
注册会员   /  发表于:2017-9-28 16:28:53
8#
有人能解决一下这个问题吗?
回复 使用道具 举报
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2017-9-28 17:45:29
9#
可否提供下您的Demo,我这里没有重现,另外您用的什么版本
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部