e狐网络 ——Powered by e-fox.net
SATURDAY
2009-5-28基于OOXML技术的复杂Excel文件在线输出(我的硕士论文)
分类:工程硕士时间:2009-5-28 11:45:11作者:efox
标签:OOXML    Excel    硕士论文    
该文发布于CSDN,2008-1-7,当时正在准备毕业论文。今天偶然看到,还是发到这里吧。
CSDN原文:基于OOXML (Office Open XML)的复杂Excel文件在线输出1(动态复制表单)
还有一篇发布在CodeProject上:Copy Excel Sheet - for Excel 2007 (2008-1-14)
写在前面的:如果你是OOXML的反对者,本文可能不适合你。
概要
    大家一定知道微软最新的OOXML吧,虽然去年没有被设立为ISO标准(现在已经是了),但是它的思路和做法对我们开发人员还是有很大帮助的。本问想阐述的是如何利用OOXML实现在我们项目中复杂Excel文件的在线输出。

项目需求
    在线导出Excel文件是项目项目开发中的常用功能,也是重要功能,且当导出的Excel文件构成比较复杂,特别是程序要能根据用户的请求数据自动判断表单数目,动态完成Excel表单的复制和数据绑定,最终提供用户下载就更加困难。
    在尝试以往各种方法后,我们在项目中决定采用Excel2007的格式开发,即OOXML,众所周知OOXML是一个新的文件类型,确切的说是一个压缩包,而压缩包里面是组成该文件的XML部件文档,一旦面向XML文件了,所有问题就变得简单了。

实现步骤
 
……

——此篇较长,点击这里查看全文

+查看评论 (1)+发表评论+Trackback地址+Trackbacks (0)
2009-5-20终于拿到硕士学位
分类:工程硕士时间:2009-5-20 13:15:01作者:efox
标签:硕士    学位    
2009年5月13日,终于拿到了工程硕士学位证书(软件工程),从2005年6月份报名开始准备,到2009年5月13日,历经4年。
+查看评论 (0)+发表评论+Trackback地址+Trackbacks (0)
2009-5-20哼哼成长记录(照片集)
分类:-= 我家小宝 =-时间:2009-5-20 13:07:11作者:efox
标签:哼哼    照片    
哼哼15个月之际,我专门挑选了这段时间以来具代表性的照片,现已整理并上传。
参见站点左侧《我的相册》-“哼哼成长记录08.7-09.5”。
+查看评论 (0)+发表评论+Trackback地址+Trackbacks (0)
2009-5-2015个月之际,哼哼终于可以独立行走了
分类:-= 我家小宝 =-时间:2009-5-20 13:03:31作者:efox
标签:哼哼    走路    
在哼哼满15个月之际,他终于不负众望可以独立行走了!在此之前,他虽然也会走路,但都是要扶着东西,或者让大人领着,按照我们的话讲,就是“胆子太小了”!
哼哼满15个月的前一周,哼哼妈妈、奶奶和我,也真当是费了好大的力气,才把他训练出独立行走。训练的过程也蛮有意思,往往是香蕉、酸枣糕等哼哼特别喜欢的食物作为勾引,倒是真的有点像训练小动物。
不过话说回来,小孩子的发育是有阶段性的,一些事情到了那个阶段他自然就会了。而且爬行是小孩子发育过程中很关键的步骤,它可以帮助宝宝锻炼身体多方面的机能,而且能够促进脑部发育。我们应该还好,没有强迫哼哼太早走路:)
愿哼哼健康成长
+查看评论 (0)+发表评论+Trackback地址+Trackbacks (0)
2009-4-3解决ReportViewer在IE7下显示不完整
分类:资源分享时间:2009-4-3 9:32:31作者:efox
标签:ReportViewer    IE7    

ReportViewer scrollbars are not rendered correctly in IE7. The Vertical
scrollbar can be recovered and the bottom part of the report can be viewed if you add the folowing to your page:

string userAgent = Request.ServerVariables.Get("HTTP_USER_AGENT");
if(userAgent.Contains("MSIE 7.0"))
 vwrReports.Attributes.Add("style", "margin-bottom: 30px;");
+查看评论 (0)+发表评论+Trackback地址+Trackbacks (0)
2009-2-17哼哼1周岁了!
分类:-= 我家小宝 =-时间:2009-2-17 11:01:30作者:efox
标签:哼哼    小宝    1周岁    
会说话,但只会喊爸爸妈妈;
或走路,但必须要扶着东西。
愿小宝健康成长!
+查看评论 (0)+发表评论+Trackback地址+Trackbacks (0)
2008-6-26Outlook Address book integration (SAMPLE)
分类:工程硕士时间:2008-6-26 15:21:21作者:efox
标签:Outlook    SharePoint    

This is a very simple sample how you could reuse MsSvAbw.AddrBookWrapper to populate a text field with chosen outlook user(s) from the address book. The idée is to reuse a dll found in Windows Sharepoint Server (2003) called MSOVABW.dll and script code. This could be extended to be used in many different business scenarios..

<html>
<head>
    <title>Lookup Outlook Address book</title>
    <script language="VBScript">
        function AddrBookVB(strExist)
              Dim Users1
              Dim t
              Dim s1
              Dim item
              L_MsAddrBook_TXT = "Title: Microsoft Address Book"
              On Error Resume Next        

              Set t = CreateObject("MsSvAbw.AddrBookWrapper")
              if Err <> 0 then
                    Err.Clear
                    set t = CreateObject("MsoSvAbw.AddrBookWrapper")
              end if

              if not IsObject(t) then
                    MsgBox "Error object not found.."
                    AddrBookVB = ""
              else
                    t.AddressBook L_MsAddrBook_TXT & "", 1, "", "", "", Users1
                    For each item in Users1
                       strExist = item.SMTPAddress
                    Next
                    Set t = Nothing
                    AddrBookVB = strExist
              end if
        End function
    </script>

</head>

<body marginwidth="0" marginheight="0" scroll="yes">
    <form name="crmForm" method="post">
        <table cellpadding="0" cellspacing="2" border="0">
            <tr>
                <td>
                    <textarea name="users" rows="5" cols="64" class="ms-long" title="Add users text field"></textarea><br>
                </td>
            </tr>
            <tr>
                <td>
                    <input type=button value='Lookup Outlook Address Book' id='AddrBookID' onclick='document.crmForm.all.users.value = AddrBookVB(null)' />
                </td>
            </tr>
        </table>
    </form>
</body>
</html>

From: http://blogs.msdn.com/jonasd/archive/2007/09/17/outlook-address-book-integration-sample.aspx
By Jonas Deibe
+查看评论 (0)+发表评论+Trackback地址+Trackbacks (0)
2008-6-3解决The path "xxxx' maps to a directory outside this
分类:资源分享时间:2008-6-3 15:11:50作者:efox
标签:vs    2005    错误    
解决The path "xxxx' maps to a directory outside this application, which is not supported.
iis的根目录例如 E:\Work\ 后面不能添加反斜线, 因为IIS会自动添加,如果这里添加了反斜线,执行时就会变成:E:\Work\\ ,之后便会报上面的错误。

+查看评论 (0)+发表评论+Trackback地址+Trackbacks (0)
2008-6-1解决Sql2005 sa 登录失败
分类:资源分享时间:2008-6-1 10:28:13作者:efox
标签:sql    server    2005    登录    

1.配置SQL Server外围应用服务器,开启SQL2005远程连接功能:
       操作方式如下,点击“配置工具”->“SQL Server外围应用配置器”,然后在打开的窗口中选择“服务和连接的外围应用配置器”->然后选择Database Engine节点下的 “远程连接”,选择“本地连接和远程连接”,同时选择“同时使用TCP/IP和named pipes”,确定后然后需要重新启动数据库服务就可以了。
2. 用Windows身份验证登陆
       Manage Studio -- 菜单"文件"--"连接对象资源管理器", 身份验证中选择"Windows Authentication"
3. 连接成功后, 右键你的实例, 选择"属性"
4. 在"属性"窗口中, 转到"Security"(安全性)项, 在"服务器身份验证"中设置为"SQL Server和Windows身份验证模式", 确定, 根据提示, 你应该重新启动sql服务
5. 重新启动sql服务后, 照用Windows身份验证连接, 然后执行下面的语句启用sa用户, 同时清除sa的密码(能成功登陆后再根据你的需要设置)
       EXEC sp_password null,'密码','sa'
       ALTER LOGIN sa ENABLE

 

+查看评论 (0)+发表评论+Trackback地址+Trackbacks (0)
2008-5-29Enable SessionState in ASP.NET and MOSS 2007
分类:资源分享时间:2008-5-29 16:10:20作者:efox
标签:Session    State    MOSS    
Add the following directives in the Web.config file of the Web application between the <system.web> tag and the </system.web> tag:

<!-- Clear out the WSS ASP.NET handler and specify the default ASP.NET handler for all pages. -->
<httpHandlers>
     <clear />
     <add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</httpHandlers>
<!-- Set the trust to Full. WSS configures a very restrictive trust policy that does not allow ASP.NET Web application to run correctly.-->
<trust level="Full" originUrl="" />
<!-- Enable the session module. This can also be enabled on the WSS Web.config, but is not enabled by default. If you receive the following message:Parser Error Message: The module 'Session' is already in the application and cannot be added again. You can remove the following <httpModules></httpModules> section as session is already enabled on the virtual server. --> 
<httpModules>
     <add name="Session" type="System.Web.SessionState.SessionStateModule"/>
</httpModules> 
<!-- Enable session state for all the pages in the Web application. --> 
<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" />
+查看评论 (0)+发表评论+Trackback地址+Trackbacks (0)
我的相册
发表留言
署名:记住我
主页:
标题:
类别:
内容:
Orphean Strains

友情链接
小笨熊的熊窝窝
孤单走一生
X2Blog(此blog的作者)
真我个性,魅力展现
绿籽·一品人生
96家园 - 第九十六
没有耳多
e狐网络
最新留言
奇访老大blog有感
寶寶太cute了吧!
^-^
恭喜恭喜
恭喜狐狸喜得贵子
想你了:)
e狐网络改版暨重新发布!
最新评论
clarke:請教一下:
1.單元格如何設置格式,如我輸入"00001"但看到的卻是"1"變為數字了.
2……
Eric:哈哈
小笨熊:赞名字。。。通俗易懂,雅俗共赏~~
小笨熊:开吧。。开了公司,我们跟你老大混口饭吃~~
小笨熊:哈哈哈。。竟然让我无意中发现了老大的blog。。 老大很生活的新时代标准幽默好男人啊。。
Jaky:恭喜!
efox:96兄,怎么总搞得这么威严啊。。。放松点,呵呵。。
不过偶一定不会辜负诸位的,一定会照顾好e太……
efox:谢谢老大,哈哈!
天晴:恭喜狐狸哦,恭喜恭喜
todde:揭发的好!就是不知道起不起作用~~偶已经上过两次电视购物的当了!第一次是去伤疤的药水,第二次是保……
站点统计
文章总数:117
评论总数:21
引用总数:0
访问统计:24911
网站名称:e狐网络
我的下载
ObjectDock 1.9:
ObjectDock 1.9
Vista盘符V3.5:
Vista盘符V3.5
目前为止最节省资源的Sidebar:
目前为止最节省资源的Sidebar
styler皮肤:
styler皮肤(宋体版)
styler皮肤(雅黑版)
Explorer.exe修改版
修改版(包含4个版本)
Vista启动画面
解决微软KB931784补丁死机问题