如何将打印预览中的某些按钮隐藏
展开全部
切换浏览格式到分页预览模式,看见里面的虚线了吗?用鼠标点击,按住左键向右,向下拖拉虚线,虚线框住隐藏的部分,打印预览就看见了。
莫慌……
莫慌……
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2017-10-15 · 知道合伙人互联网行家
关注
展开全部
procedure ReportOnStartReport(Sender: TfrxComponent);
begin
//全部
//Report.PreviewOptions.Buttons :=pbEdit+pbExport+pbFind+pbLoad+pbNavigator+pbPageSetup+pbPrint+pbSave+pbTools+pbZoom;
//不显示导出
Report.PreviewOptions.Buttons :=pbEdit+pbFind+pbPageSetup+pbPrint+pbSave+pbTools+pbZoom;
end;
使用.net调用 using System;
using System.Data;
using System.Windows.Forms;
using FastReport;
using FRInterop;
namespace FRDemo
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.StartPosition = FormStartPosition.CenterScreen;
FastReportService service = FastReportService.Instance;
service.CustomRegSvr = true;
service.InitializeService();
Application.ThreadExit += new EventHandler(Application_ThreadExit);
}
void Application_ThreadExit(object sender, EventArgs e)
{
FastReportService.Instance.UnloadService();
}
static DataSet GetDataSource()
{
DataSet ds = new DataSet();
ds.ReadXml(String.Format("{0}\\customer.xml", Application.StartupPath));
return ds;
}
private void button1_Click(object sender, EventArgs e)
{
FastReportService.Instance.ShowDesigner(delegate(TfrxReport report) { report.MainWindowHandle = (int)this.Handle; },
null, GetDataSource(), null, String.Format("{0}\\Simple list.fr3", Application.StartupPath), null);
}
private void button2_Click(object sender, EventArgs e)
{
FastReportService.Instance.ShowReport(null, null, GetDataSource(), true, false, null,
String.Format("{0}\\Simple list.fr3", Application.StartupPath));
}
private void button3_Click(object sender, EventArgs e)
{
FastReportService.Instance.ShowDesigner((int)this.Handle, GetDataSource());
}
}
}
不需要初始化的 ,只要开始调用一次取消即可
begin
//全部
//Report.PreviewOptions.Buttons :=pbEdit+pbExport+pbFind+pbLoad+pbNavigator+pbPageSetup+pbPrint+pbSave+pbTools+pbZoom;
//不显示导出
Report.PreviewOptions.Buttons :=pbEdit+pbFind+pbPageSetup+pbPrint+pbSave+pbTools+pbZoom;
end;
使用.net调用 using System;
using System.Data;
using System.Windows.Forms;
using FastReport;
using FRInterop;
namespace FRDemo
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.StartPosition = FormStartPosition.CenterScreen;
FastReportService service = FastReportService.Instance;
service.CustomRegSvr = true;
service.InitializeService();
Application.ThreadExit += new EventHandler(Application_ThreadExit);
}
void Application_ThreadExit(object sender, EventArgs e)
{
FastReportService.Instance.UnloadService();
}
static DataSet GetDataSource()
{
DataSet ds = new DataSet();
ds.ReadXml(String.Format("{0}\\customer.xml", Application.StartupPath));
return ds;
}
private void button1_Click(object sender, EventArgs e)
{
FastReportService.Instance.ShowDesigner(delegate(TfrxReport report) { report.MainWindowHandle = (int)this.Handle; },
null, GetDataSource(), null, String.Format("{0}\\Simple list.fr3", Application.StartupPath), null);
}
private void button2_Click(object sender, EventArgs e)
{
FastReportService.Instance.ShowReport(null, null, GetDataSource(), true, false, null,
String.Format("{0}\\Simple list.fr3", Application.StartupPath));
}
private void button3_Click(object sender, EventArgs e)
{
FastReportService.Instance.ShowDesigner((int)this.Handle, GetDataSource());
}
}
}
不需要初始化的 ,只要开始调用一次取消即可
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询