切换浏览格式到分页预览模式,看见里面的虚线了吗?用鼠标点击,按住左键向右,向下拖拉虚线,虚线框住隐藏的部分,打印预览就看见了。
莫慌……
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());
}
}
}
不需要初始化的 ,只要开始调用一次取消即可