![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
.Net
zhong0591
这个作者很懒,什么都没留下…
展开
-
.net Core 实现Excel导出功能
首先引入命名空间using OfficeOpenXml;这里把步骤分为三步,1)设定Excel的表头及格式(具体参数可以参考Api)2)设定表头的宽度3)加载对应的报表内容,同样也可以设置格式,包括字体颜色大小等。 private ExcelWorksheet GetClerkDateReport(ExcelWorksheet worksheet, SearchOps search, ApplicationUser user) { v...原创 2021-05-14 09:33:11 · 868 阅读 · 0 评论 -
.netCore 图片压缩处理
.netCore 图片压缩处理参考了一些开源的代码,自己加工了一下,相当好用的图片压缩实现。代码简单,返回的是byte[],当然也可以直接保存成文件。图片压缩处理using Microsoft.AspNetCore.Http;using System;using System.Collections.Generic;using System.Drawing;using System.Drawing.Imaging;using System.IO;using System.T..原创 2021-05-14 09:18:15 · 1714 阅读 · 0 评论 -
C# resources 自动生成.design.cs
修改.csproj文件,里面应该可以找到这个:<EmbeddedResource Include="Resources.resx"></EmbeddedResource>或者<EmbeddedResource Include="Resources.resx" />添加下面的代码即可:<DependentUpon>Resources.De...原创 2019-01-30 13:56:19 · 2335 阅读 · 0 评论 -
Azure bot 部署
把对应生成的AppId 和password, 配置到.bot文件中,对应的endpoint , production 节点中。在Azure 生成一个web bot app, 可以在web 的application settings 中查询到对应的 botFileSecret。将该值填写到对应 bot 项目中的 appsettings.json文件中。 部署的具体步骤请查看以下文档:...原创 2019-01-30 14:02:26 · 522 阅读 · 0 评论