1、关于打印后出现空白页,以及与Excel不一致的问题,可以提供一个文件,具体调研下。
2、可以通过下面的代码添加中文字体:
- <div> var fontFamilyCmd = GC.Spread.Sheets.Designer.getCommand("fontFamily");
- var customCNFont = [
- { value: "微软雅黑", text: "微软雅黑" },
- { value: "宋体", text: "宋体" },
- { value: "黑体", text: "黑体" },
- { value: "新宋体", text: "新宋体" },
- { value: "仿宋", text: "仿宋" },
- { value: "隶书", text: "隶书" },
- { value: "楷体", text: "楷体" }
- ];
- fontFamilyCmd.dropdownList = customCNFont.concat(fontFamilyCmd.dropdownList);
- var ribbonConfig = GC.Spread.Sheets.Designer.DefaultConfig;
- ribbonConfig.commandMap = {
- fontFamily: fontFamilyCmd
- }
- designer.setConfig(ribbonConfig);</div>
复制代码
|