找回密码
 立即注册

QQ登录

只需一步,快速开始

trechina

最新发帖
trechina
中级会员   /  发表于:2013-12-5 16:06:00
11#
回复 10楼roger.wang的帖子

谢谢了 那请问 savaExcel都支持Excelsaveflags吗
回复 使用道具 举报
trechina
中级会员   /  发表于:2013-12-5 16:07:00
12#
回复 10楼roger.wang的帖子

主要显示不支持  不让填写这个参数呢  有别的办法设置吗
回复 使用道具 举报
roger.wang
社区贡献组   /  发表于:2013-12-5 16:16:00
13#
回复 12楼trechina的帖子

我下载的是最新的国际版: Spread Winform 的7.2

savaExcel支持Excelsaveflags的
[Flags]
    public enum ExcelSaveFlags
    {
        // Summary:
        //     [0] Saves the spreadsheet to the Excel-compatible file with no special options.
        NoFlagsSet = 0,
        //
        // Summary:
        //     [1] Saves the displayed data but not the formulas to the Excel-compatible
        //     file.
        NoFormulas = 1,
        //
        // Summary:
        //     [2] Saves the custom row headers to the Excel-compatible file.
        SaveCustomRowHeaders = 2,
        //
        // Summary:
        //     [4] Saves the custom column headers to the Excel-compatible file.
        SaveCustomColumnHeaders = 4,
        //
        // Summary:
        //     [6] Saves both the custom row headers and the custom column headers to the
        //     Excel-compatible file.
        SaveBothCustomRowAndColumnHeaders = 6,
        //
        // Summary:
        //     [8] Saves the results of rows after filtering them to the Excel-compatible
        //     file.
        SaveAsFiltered = 8,
        //
        // Summary:
        //     [16] Saves the spreadsheet to an Excel 2007 (OfficeOpen XML) format.
        UseOOXMLFormat = 16,
        //
        // Summary:
        //     [32] Saves only the data to the Excel-compatible file.
        DataOnly = 32,
        //
        // Summary:
        //     [64] Saves the appearance settings of alternating rows to the Excel-compatible
        //     file.
        SaveAlternatingRowStyles = 64,
        //
        // Summary:
        //     [136] Saves the spreadsheet as viewed to the Excel-compatible file.
        SaveAsViewed = 136,
        //
        // Summary:
        //     [256] Uses a custom color palette, and uses it for color approximations if
        //     there are more than 56 colors set into Spread.
        UseCustomPaletteForColorApproximations = 256,
        //
        // Summary:
        //     [512] Uses the default color palette.
        UseDefaultColorPalette = 512,
        //
        // Summary:
        //     [1024] Saves the displayed data and formatting, but not the notes.
        NoNotes = 1024,
        //
        // Summary:
        //     [2048] Keeps Excel data that was previously loaded from the files (e.g. VBA,
        //     Macro).
        DocumentCaching = 2048,
        //
        // Summary:
        //     [4096] The default row height is not saved. Excel will automatically determine
        //     row heights based on the largest font that is set in each row.
        AutoRowHeight = 4096,
        //
        // Summary:
        //     [8192] Saves the displayed data in the combobox celltype, does not save the
        //     items in the combo box.
        ComboDataOnly = 8192,
    }
回复 使用道具 举报
trechina
中级会员   /  发表于:2013-12-5 17:02:00
14#
回复 13楼roger.wang的帖子

谢谢 那请问 低版本的 savaexcelflags  还能用在其他的地方吗
回复 使用道具 举报
roger.wang
社区贡献组   /  发表于:2013-12-5 19:25:00
15#
回复 14楼trechina的帖子

这里是国际版的API文档。
Spread Windows Forms 7.0 Product Documentation       
SaveExcel(Stream,ExcelSaveFlags) Method
http://helpcentral.componentone. ... .FpSpread~SaveExcel(Stream,ExcelSaveFlags).html
SaveExcel有多个重载函数,具体使用,查看文档即可一一明了。

您的这个1.几的日文版,建议您通过 https://www.grapecity.com/japan/support/ 咨询。
回复 使用道具 举报
trechina
中级会员   /  发表于:2013-12-6 07:49:00
16#
回复 15楼roger.wang的帖子

好的  谢谢
回复 使用道具 举报
trechina
中级会员   /  发表于:2013-12-6 08:26:00
17#
回复 15楼roger.wang的帖子

您好 我还想问一个问题 怎么让我导出数据的Excel有网格线呢? 我现在导出数据的Excel没有网格线
回复 使用道具 举报
roger.wang
社区贡献组   /  发表于:2013-12-6 10:59:00
18#
回复 17楼trechina的帖子


Spread_WF_Excel_IO.gif

如这个图示,在Spread Winform 7.2 国际版自带的演示demo中。
打开、保存Excel可通过设置Flags来实现保存Excel带格子样式、不带格子样式等选择。
回复 使用道具 举报
trechina
中级会员   /  发表于:2013-12-6 13:06:00
19#
回复 2楼roger.wang的帖子

已经解决了 谢谢
回复 使用道具 举报
roger.wang
社区贡献组   /  发表于:2013-12-6 13:34:00
20#
回复 19楼trechina的帖子

太好了,有问题再开新帖。
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部