コード例 #1
0
ファイル: MhtBuilder.cs プロジェクト: eksotama/odd-reports
 /// <summary>
 /// Appends a downloaded external text file to our MhtBuilder using Quoted-Printable encoding
 /// </summary>
 void AppendMhtTextFile(MhtWebFile ef)
 {
     AppendMhtBoundary();
     AppendMhtLine("Content-Type: " + ef.ContentType + ";");
     AppendMhtLine(Convert.ToChar(9).ToString() + @"charset="" + ef.TextEncoding.WebName + @""");
     AppendMhtLine("Content-Transfer-Encoding: quoted-printable");
     AppendMhtLine("Content-Location: " + ef.Url);
     AppendMhtLine();
     AppendMhtLine(QuotedPrintableEncode(ef.ToString(), ef.TextEncoding));
 }
コード例 #2
0
ファイル: MhtBuilder.cs プロジェクト: mnisl/OD
		/// <summary>
		/// Appends a downloaded external text file to our MhtBuilder using Quoted-Printable encoding
		/// </summary>
		void AppendMhtTextFile(MhtWebFile ef)
		{
			AppendMhtBoundary();
			AppendMhtLine("Content-Type: " + ef.ContentType + ";");
			AppendMhtLine(Convert.ToChar(9).ToString() + @"charset="" + ef.TextEncoding.WebName + @""");
			AppendMhtLine("Content-Transfer-Encoding: quoted-printable");
			AppendMhtLine("Content-Location: " + ef.Url);
			AppendMhtLine();
			AppendMhtLine(QuotedPrintableEncode(ef.ToString(), ef.TextEncoding));
		}