C# web 怎么调出打印和另存为对话框 如题,我要在页面上加两个按钮,一个打印按钮,一个另存为按钮。调出本机上的打印对话框和另存为对话框、、另存为的时候,将页面的信息存储为txt格式,要怎么设置?网页上的文件--另存为,文件--打印 功能 ,这个不需要需求是要用按钮调用、、、 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 onclick="window.print()"HttpRequest.SaveAs document.execCommand('Saveas',false,'c:\\a.htm')>public void WriteFile(string content, string fileSavePath){ if (System.IO.File.Exists(fileSavePath)) { System.IO.File.Delete(fileSavePath); } using (System.IO.FileStream fs = System.IO.File.Create(fileSavePath)) { byte[] info = new System.Text.Encoding.GetEncoding("gb2312").GetBytes(content); fs.Write(info, 0, info.Length); }}onclick="window.print()"HttpRequest.SaveAs document.execCommand('Saveas',false,'c:\\a.htm')>public void WriteFile(string content, string fileSavePath){ if (System.IO.File.Exists(fileSavePath)) { System.IO.File.Delete(fileSavePath); } using (System.IO.FileStream fs = System.IO.File.Create(fileSavePath)) { byte[] info = new System.Text.Encoding.GetEncoding("gb2312").GetBytes(content); fs.Write(info, 0, info.Length); }} window.print()这些函数,可以找些网站看看啊。有些网站带着打印功能,你看他们调的什么函数啊 如何根据一组给定的坐标值,从一个图片上切割出一个小图像? 关于VS2008打印输出语句显示问题 图片显示问题........ C#中如何实现在listview中右击某一单元格实现复制功能 DIV問題... 一个很简单的C#程序该如何调试 有点郁闷 请问怎么解决CPU占有率过高?有代码 win7 64 位 如何运行 我在32位下写的程序 关于“权限模块”的学习,请介绍一下比较详细的帖子 xmlhttp和HttpWebRequest的问题,知道的进来看一下(急!!!!) C#字符串截取问题 C# 上传文件问题
HttpRequest.SaveAs
document.execCommand('Saveas',false,'c:\\a.htm')>
public void WriteFile(string content, string fileSavePath)
{
if (System.IO.File.Exists(fileSavePath))
{
System.IO.File.Delete(fileSavePath);
}
using (System.IO.FileStream fs = System.IO.File.Create(fileSavePath))
{
byte[] info = new System.Text.Encoding.GetEncoding("gb2312").GetBytes(content);
fs.Write(info, 0, info.Length);
}
}onclick="window.print()"
HttpRequest.SaveAs
document.execCommand('Saveas',false,'c:\\a.htm')>
public void WriteFile(string content, string fileSavePath)
{
if (System.IO.File.Exists(fileSavePath))
{
System.IO.File.Delete(fileSavePath);
}
using (System.IO.FileStream fs = System.IO.File.Create(fileSavePath))
{
byte[] info = new System.Text.Encoding.GetEncoding("gb2312").GetBytes(content);
fs.Write(info, 0, info.Length);
}
}
这些函数,可以找些网站看看啊。有些网站带着打印功能,你看他们调的什么函数啊