摘要:
效果图 代码如下 //选择图片 OpenFileDialog ofd = new OpenFileDialog(); ofd.Title = "选择要上传的图片"; ofd.Filter = "All Files(*.*)|*.*|位图(*.bmp)|*.bmp|JPEG(*.jpg)|*.jpg" 阅读全文
摘要:
1.新建项目 2.添加引用 3.config中添加如下 <system.web> <httpHandlers> <add path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.WebExport" /> </httpH 阅读全文
摘要:
1.新建项目 2.添加引用 3.主窗体添加预览,打印按钮。子窗体添加previewControl控件 4. 在子窗体加载事件中写代码 代码如下 private void CD_Load(object sender, EventArgs e){ dt = new DataTable(); DataTa 阅读全文
摘要:
string Path = System.Environment.CurrentDirectory + "/test.frx";//获取路径 report.Load(Path);//加载模板 var graph = report.FindObject("Picture1") as PictureOb 阅读全文
摘要:
新建数据源 输入表名,编写SQL语句。 新建数据源时,使用SQL语句创建。变量使用@。 C#程序中 添加对fastreport 的引用。 窗体添加previewControl 控件。 后台代码 Report report = new Report(); report.SetParameterValu 阅读全文
摘要:
效果图,图片始终处于这个位置。 代码 <style> #NavTop { width: 140px;/*图片盒子的宽度 右移*/ height: 250px; margin-top: 50px; position: fixed; right: 0px; top: 200px; /*固定位置,右浮动, 阅读全文
摘要:
<div id="slider_wrap"> <div id="slider_content"> <div><a href="html/chanpin/yinzhu.html"><img src="img/yinzhu/DT-YZ-101.png" /></a><br />音柱</div> <div 阅读全文
摘要:
// 在控件panel中添加PictureBox private void SetPage(List<ExtenStatus> listdata) { this.panel2.Controls.Clear(); int row = 0; for (int i = 0; i < listdata.Co 阅读全文