在Azure中打印excel文件

  • J1_103273
    了解作者
  • 41.4KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-14 23:54
    上传日期
在Azure中打印excel文件,用了Free Spire.XLS for.NET。
Print Excel files from C%23 code.zip
  • C#
  • Properties
  • Settings.Designer.cs
    1.1KB
  • Resources.resx
    5.5KB
  • Settings.settings
    249B
  • Resources.Designer.cs
    2.8KB
  • bin
  • Form1.resx
    5.7KB
  • Print.csproj
    4.6KB
  • Form1.cs
    1.9KB
  • Form1.Designer.cs
    2KB
  • Sample.xls
    27.5KB
  • Print.sln
    851B
  • Print.suo
    16.5KB
  • Program.cs
    497B
  • description
  • iframedescription.css
    3.3KB
  • 7b419bc4-e5c0-45f7-a007-7a75af00bb22Combined.css
    0B
  • Combined.css
    0B
  • Layout.css
    1.7KB
  • Brand.css
    70KB
  • Galleries.css
    10.2KB
  • offline.js
    1.6KB
  • license.rtf
    4.6KB
  • description.html
    10.6KB
内容介绍
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head><link rel="stylesheet" type="text/css" href="description/Combined.css,0:HeaderFooterSprite,0:Header.NonMtps,1:LinkList;/Areas/Centers/Themes/StandardDevCenter/Content:0,/Areas/Epx/Themes/Base/Content:1&amp;amp;hashKey=EC831D2F780A53CF4C404B53E768954F" xmlns="http://www.w3.org/1999/xhtml" /> <link type="text/css" rel="stylesheet" xmlns="http://www.w3.org/1999/xhtml" /> <link rel="stylesheet" type="text/css" href="description/7b419bc4-e5c0-45f7-a007-7a75af00bb22Combined.css,0:HeaderFooterSprite,0:Footer.NonMtps,1:LinkList;/Areas/Centers/Themes/StandardDevCenter/Content:0,/Areas/Epx/Themes/Base/Content:1&amp;amp;hashKey=DF234F4FF3DA5D35A03D2829D4F99E0D" xmlns="http://www.w3.org/1999/xhtml" /> <link type="text/css" rel="stylesheet" xmlns="http://www.w3.org/1999/xhtml" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Print Excel files from C# code</title> <link href="description/Galleries.css" type="text/css" rel="Stylesheet" /><link href="description/Layout.css" type="text/css" rel="Stylesheet" /><link href="description/Brand.css" type="text/css" rel="Stylesheet" /> <link href="description/iframedescription.css" rel="Stylesheet" type="text/css" /> <script src="description/offline.js" type="text/javascript"></script> <style type="text/css"> #projectInfo { overflow: auto; } #longDesc { clear:both; margin: 25px 0 10px 0; } #SampleIndexList{ margin-left: 15px; } </style> </head> <body> <div id="offlineDescription"> <h1>Print Excel files from C# code</h1> <br/> <div id="projectInfo"> <div class="section"> <div class="itemBarLong tagsContainer"> <label for="Technologies">Technologies</label> <div id="Technologies"> C#, ASP.NET, Win32, Windows Forms, WPF, Microsoft Azure, XAML, .NET Framework </div> </div> <div class="itemBarLong tagsContainer"> <label for="Topics">Topics</label> <div id="Topics"> Controls, C#, Windows Forms, C# Language Features </div> </div> <div class="itemBarLong"> <label for="Platforms">Platforms</label> <div id="Platforms"> Desktop, Web, Cloud, Data </div> </div> <div class="itemBarLong"> <label for="Requirements">Requirements</label> <div id="Requirements"> </div> </div> <div class="itemBar"> <label for="LastUpdated">Primary language</label> <div id="LastUpdated">en-US</div> </div> <div class="itemBar"> <label for="LastUpdated">Updated</label> <div id="LastUpdated">7/14/2014</div> </div> <div class="itemBarLong"> <label for="License">License</label> <div id="License"> <a href="license.rtf" rel='nofollow' onclick='return false;'>MS-LPL</a></div> </div> <div class="itemBar"> <div class="viewonlinecont"> <a data-link="online" href="http://code.msdn.microsoft.com/Print-Excel-files-from-C-b7f89412" rel='nofollow' onclick='return false;'>View this sample online</a> </div> </div> </div> </div> <script type="text/javascript"> function initializePage() { var otherTabClass = 'otherTab'; var hiddenPreClass = 'hidden'; var htmlDecode = function(encodedData) { var decodedData = ""; if (encodedData) { var div = document.createElement('div'); div.innerHTML = encodedData; decodedData = div.firstChild.nodeValue.replace( /\\r\\n/ig , '\r\n'); } return decodedData; }; Galleries.iterateElem(Galleries.findElem(null, 'div', 'scriptcode'), function (index, scriptBlock) { var titleElem = Galleries.findElem(scriptBlock, 'div', 'title')[0]; var labelElems = Galleries.findElem(titleElem, 'span'); if (labelElems.length == 0) { labelElems = titleElem; } var languageSpans = Galleries.findElem(scriptBlock, 'span', 'hidden'); var pres = Galleries.findElem(scriptBlock, 'pre'); if (languageSpans.length > 0 && pres.length > 1) { Galleries.iterateElem(labelElems, function(index, elem) { var codePre = pres[index]; var labelSpan = elem; var languageSpan = languageSpans[index]; elem.code = codePre.innerHTML.replace( /(\r(\n)?)|((\r)?\n)/ig , '\\r\\n'); codePre.className = codePre.className.replace(hiddenPreClass, ''); languageSpan.parentNode.removeChild(languageSpan); }); pres = Galleries.findElem(scriptBlock, 'pre'); Galleries.iterateElem(labelElems, function(index, elem) { var codePre = pres[index]; var labelSpan = elem; if (index == 0) { scriptBlock.activeTab = 0; } else { labelSpan.className += otherTabClass; codePre.className += hiddenPreClass; } Galleries.attachEventHandler(labelSpan, 'click', function(e) { var activeTab = scriptBlock.activeTab; labelElems[activeTab].className += otherTabClass; pres[activeTab].className += hiddenPreClass; codePre.className = codePre.className.replace(hiddenPreClass, ''); labelSpan.className = labelSpan.className.replace(otherTabClass, ''); scriptBlock.activeTab = index; }); }); var preview = Galleries.findElem(scriptBlock, 'div', 'preview'); if (preview.length == 0) { preview.push(pres[pres.length - 1]); } Galleries.iterateElem(preview, function(index, elem) { elem.parentNode.removeChild(elem); }); if (window.clipboardData && clipboardData.setData) { var copyLink = document.createElement('a'); copyLink.href = 'javascript:void(0);'; copyLink.className = 'copyCode'; copyLink.innerHTML = 'Copy code'; Galleries.attachEventHandler(copyLink, 'click', function (e) { clipboardData.setData("Text", htmlDecode(labelElems[scriptBlock.activeTab].code)); return false; }); scriptBlock.insertBefore(copyLink, scriptBlock.childNodes[0]); } } }); } Galleries.onWindowLoad(function(){ initializePage(); }); </sc
评论
    相关推荐