我在 excel 中写了一个宏,我通过 Gmail 发送邮件。我正在发送邮件,但无法发送图片,因为我无法在 Gmail 邮件正文中粘贴图片。我把我的代码。我也从activesheet(根据我的excel的Sheet4)获取图片。如何在我的邮件正文中添加这张图片?
Sub SendGmail(frommail As String, password As String, tomail As String, subject As String, mesaj As String)
Dim pic As String
pic = CheckImageName
If pic <> "" Then
Sheet4.Shapes(pic).Copy
End If
If frommail <> "" And password <> "" And tomail <> "" And subject <> "" And mesaj <> "" Then
On Error Resume Next
'creating a CDO object
Dim Mail As CDO.message
Set Mail = New CDO.message
'Enable SSL Authentication
Mail.Configuration.Fields.Item …Run Code Online (Sandbox Code Playgroud) 如何在 c# 解析这个 json 列表?我在我的服务端阅读了这个列表。我使用 web api。
[
{ "Id":1,
"Adjustment":{
"CardNumber": "1234567895678",
"TimeStamp": "2016-06-14 12:00:56",
"Point": -13.09
}
},
{ "Id":2,
"Adjustment":{
"CardNumber": "2345673245689",
"TimeStamp": "2016-06-14 12:05:43",
"Point": 2.3
}
}
]
Run Code Online (Sandbox Code Playgroud)
我这样做了,但它不起作用:如何修复我的代码?你有什么建议吗?我发送给 Fiddler 请求正文。
public object InsertNewCustomer([FromBody] object value)
{
var returns = new List<object>();
if (value == null)
{
returns.Add(new { ReturnCode = "-1" });
return Json(returns, JsonRequestBehavior.AllowGet).Data;
}
var jsonstr = @value.ToString();
var jsonVal = JArray.Parse(jsonstr);
Cariler newcustomer = new Cariler();
using (TransactionScope scope = new …Run Code Online (Sandbox Code Playgroud) 如何将此字符串 yy-MM-dd HH:mm:ss.SSS 转换为 c# 中的日期时间?