zoukankan      html  css  js  c++  java
  • Formula One Report学习总结

    Formula One资料很少,我把最近找到的资料进行收集,方便日后查看

     

     

    //读入模板文件

    axF1Book1.ReadEx(@"F:\\access\\dom3.vts");

    //TextSRC (1,1,1,"工作簿中的第一个工作表的第一个单元格行列

    //\n代表换行

    axF1Book1.set_TextSRC(1, 1, 1, "标题" + "\n" + "\n 汇总日期:" + "1212313");

    //把指定的单元格转换成数值,axF1Book1.get_EntryRC(rows , 3)这是指选中的单元格axF1Book1.set_NumberRC(rows, 3, Convert.ToDouble(axF1Book1.get_EntryRC(rows , 3)));

    //选择定的区域

    axF1Book1.Selection="A6:G16";

    ///设置边框样式。

    axF1Book1.SetBorder(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);

    //记算指定单元格的各,放在18,3中

    axF1Book1.set_FormulaRC(18, 3, "sum(C6:C15)");

    //合并单元格

    TTF160.F1CellFormat aa;

    aa = axF1Book1.CreateNewCellFormat(); //建立一个新的单元格样式

    aa.MergeCells = true;//设置开起合并单元格

    axF1Book1.SetSelection(17, 2, 20, 2); //选择定的区域

    axF1Book1.SetCellFormat(aa);//得到单元格格式

    //激活其它表,int的指第几个表           

    axF1Book1.Sheet = 2;

    //插入行

    axF1Book1.EditInsert(TTF160.F1ShiftTypeConstants.F1ShiftRows);//F1ShiftCols插入列

    //删除行

    axF1Book1.EditDelete(TTF160.F1ShiftTypeConstants.F1ShiftRows);

    //删除选定工作表

    axF1Book1.EditDeleteSheets();

    //插入工作表

    axF1Book1.EditInsertSheets();

    //字体样式的设置

    axF1Book1.SetSelection(6,1,6,7);   //选中一行  

    axF1Book1.FontName = "隶书";//设置字体  

    //这里说明一下字体颜色值是Color.red;

    axF1Book1.FontColor = Color.Blue;//设置字体颜色

    axF1Book1.FontItalic=true; //设置斜体

    axF1Book1.FontSize=18; //设置字体大小

    axF1Book1.FontStrikeout=true; //设置中划线(删除线)

    axF1Book1. FontUnderline=true; //设置下划线

    //设置样式如下:

    axF1Book1.SetSelection(6,1,6,7);   //选中一行

    axF1Book1.FormatCurrency0();//设置为¥的样式

    //下边内容如上边一样的格式;

    FormatAlignmentDlg()        //弹出"对齐方式"对话框

    FormatBorderDlg()           //弹出"边框"设置对话框

    FormatCellsDlg(long Pages)    //弹出"单元格"对话框

    FormatCurrency0()           //格式化币别

    FormatDefaultFontDlg()       //显示"默认字体"对话框

    FormatFontDlg()             //显示"字体"对话框

    FormatFraction()             //"分数"格式化

    FormatGeneral()             //"通用"格式化

    FormatHmmampm()          //12小时制格式化

    FormatMdyy()               //日期格式化

    FormatNumberDlg()           //弹出"数字"格式化对话框

    FormatObjectDlg(long Pages)   //弹出"对象"格式化对话框

    FormatPatternDlg()           //弹出"模式"对话框

    FormatPercent()             //百分比格式化

    FormatScientific()            //科学记数 格式化

    查找

    axF1Book1.FindDlg()// 弹出"查找"对话框

    //打印

    //是否打印表格线

    axF1Book1.PrintGridLines = true;

    //直接打印,是否显示打印对话框

    axF1Book1.FilePrintEx(true, false);

    axF1Book1.FilePrintEx( bShowPrintDlg, bPrintWorkbook)

    bShowPrintDlg—指定是不是显示打印设置

    bPrintWorkbook-——指定打印范围,TRUE:指的是整个工作簿,false:指打印工作表;

    相关链接:http://hi.baidu.com/yiwen228/blog/item/d2f0c33641e14f380a55a949.html

  • 相关阅读:
    关于js计算非等宽字体宽度的方法
    [NodeJs系列]聊一聊BOM
    Vue.js路由管理器 Vue Router
    vue 实践技巧合集
    微任务、宏任务与Event-Loop
    事件循环(EventLoop)的学习总结
    Cookie、Session和LocalStorage
    MySQL 树形结构 根据指定节点 获取其所在全路径节点序列
    MySQL 树形结构 根据指定节点 获取其所有父节点序列
    MySQL 创建函数报错 This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators
  • 原文地址:https://www.cnblogs.com/Anlycp/p/1792776.html
Copyright © 2011-2022 走看看