随笔 - 24  文章 - 125  评论 - 0  阅读 - 13万

随笔分类 -  C#.net

.net导出图片到Excel
摘要:首先:Model类 然后构造要导入的Excel信息: Excel帮助类如下: 参数的解析: HSSFClientAnchor(int dx1,int dy1,int dx2,int dy2,int col1,int row1,int col2,int row2)dx1:图片左边相对excel格的位置 阅读全文
posted @ 2019-11-13 18:01 ymworkroom 编辑
.net获取网络图片
摘要:using System.IO; using System.Net; namespace TestUpfile { public class NetHelper { public static Stream GetImgStream(string url,string protocol="http") { WebResponse response = null; Stream stream = n 阅读全文
posted @ 2019-11-13 17:54 ymworkroom 编辑
mvc后台post发送json数据
摘要:代码比较简单,不废话,直接上代码: 要引入命名空间:using System.Net.Http; 阅读全文
posted @ 2017-03-15 15:14 ymworkroom 编辑
将网页设置为允许 XMLHttpRequest 跨域访问
摘要:在非IE下,使用XMLHttpRequest 不能跨域访问, 除非要访问的网页设置为允许跨域访问。 将网页设置为允许跨域访问的方法如下: Response.AddHeader("Access-Control-Allow-Origin", "*"); 或指定域名下可以访问: Response.AddH 阅读全文
posted @ 2017-03-03 15:37 ymworkroom 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示