eHR人力资源管理系统加入报表打印模块

1,证件相关中加入员工证打印

2,利用FR导出功能,导出报表到服务器pdf/jpg,然后在浏览器进行加载!

3,功能预览地址http://ehr.kopsoft.cn?url=TUniFrame_hr_user_sgz

 

免费人力资源管理软件,免费Mes系统,免费仓库管理软件WMS 

frxDBDataset1.DataSet:=t_q;

 

frxPDFExport1.FileName:=UniServerModule.NewCacheFileUrl(False, 'pdf', '', '', AUrlPdf, True);

 

frxJPEGExport1.Resolution:=200;
frxJPEGExport1.SeparateFiles:=False;
frxJPEGExport1.FileName:=UniServerModule.NewCacheFileUrl(False, 'jpg', '', '', AUrlJpg, True);

frxrprt1.PrepareReport;
frxrprt1.Export(frxPDFExport1);
frxrprt1.Export(frxJPEGExport1);

AppMainForm.ReportFileUrl_Jpg:=AUrlJpg;
AppMainForm.ReportFileUrl_Pdf:=AUrlPdf;

AppMainForm.OpenForm('TUniFrame_App_Print',' 打 印 ');

 

 

 


procedure TUniFrame_App_Print.UniFrameCreate(Sender: TObject);
begin
UniPDFFrame1.PdfURL:=AppMainForm.ReportFileUrl_Pdf;
UniURLFrame1.URL:=AppMainForm.ReportFileUrl_Pdf;
UniURLFrame_Jpg.URL:=AppMainForm.ReportFileUrl_Jpg;
unpgcntrl1.ActivePageIndex:=0;
end;

posted @ 2020-08-09 07:32  HelloWorld2008  阅读(594)  评论(0)    收藏  举报