• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
擦肩没过
博客园    首页    新随笔    联系   管理    订阅  订阅
2012年3月29日
C#调用小票打印机
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Drawing.Printing;namespace BNCheckItemsClient.FormC.Specimen{ publicclass PrintSpecimenLabel { PrintDocument printDocument; privateint _PrintPage =0;//当前打印页 阅读全文
posted @ 2012-03-29 23:49 擦肩没过 阅读(3007) 评论(1) 推荐(0)
使用RestSharp 库调用Restful Service
摘要: 现在互联网上的服务接口都是Restful的,SOAP的Service已经不是主流。.NET/Mono下如何消费Restful Service呢,再也没有了方便的Visual Studio的方便生产代理的工具了,你还在用HttpWebRequest 自己封装吗?Restful Service还有授权问题,自己写出来的代码是不是很不优雅?通常Restful Service返回的数据格式是XML或者Json,还要设置服务的输入参数等等,使用起来很复杂。本文向你推荐一个开源的库RestSharp轻松消费Restful Service。RestSharp是一个开源的.NET平台下REST和Http AP 阅读全文
posted @ 2012-03-29 12:41 擦肩没过 阅读(834) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3