修复eeplus中的标题文本 [英] Fixing header text in eeplus

查看:81
本文介绍了修复eeplus中的标题文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果标题文本长于打印excel的页边距,则excel文件会损坏。

有没有什么方法可以换行标题文本以便它不会泄漏到分配给excel报告主体的边距?

标题文本的长度可以变化。

If header text is longer than the page margin of printed excel, the excel file gets corrupted.
Is there any way I could line break the header-text so that it doesn't leak into the margins allocated to the body of excel report?
Header text's length can vary.

推荐答案

Excel将按照格式化打印工作表。如果您希望标题显示不同,则代码必须通过并适当地格式化标题单元格,例如设置列宽并打开单元格中的文本换行。
Excel will print the sheet as it's formatted. If you want the headers to appear differently, your code will have to go through and format the header cells appropriately, such as setting the column width and turning on text wrapping in the cell.


这篇关于修复eeplus中的标题文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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