在VC6中使用水晶报表8.5
来源:互联网 发布:加工中心铣螺纹编程 编辑:程序博客网 时间:2024/04/28 05:09
const CLSID CLSID_Application = {0xb4741fd0,0x45a6,0x11d1,{0xab,0xec,0x00,0xa0,0xc9,0x27,0x4b,0x91}};
const IID IID_IApplication = {0x0bac5cf2,0x44c9,0x11d1,{0xab,0xec,0x00,0xa0,0xc9,0x27,0x4b,0x91}};
const CLSID CLSID_ReportObjects = {0xb4741e60,0x45a6,0x11d1,{0xab,0xec,0x00,0xa0,0xc9,0x27,0x4b,0x91}};
const IID IID_IReportObjects = {0x0bac59b2,0x44c9,0x11d1,{0xab,0xec,0x00,0xa0,0xc9,0x27,0x4b,0x91}};
初始化:
HRESULT hr = CoCreateInstance(CLSID_Application, NULL, CLSCTX_INPROC_SERVER , IID_IApplication, (void **) &m_Application);
m_Report=m_Application->OpenReport("resume.rpt");
m_wndCRViewer.SetReportSource(m_Report);
m_wndCRViewer.SetDisplayToolbar(false);
m_wndCRViewer.SetDisplayTabs(false);
m_wndCRViewer.SetDisplayGroupTree(false);
m_wndCRViewer.ViewReport();
m_wndCRViewer.Zoom(100);
隐藏字段:
VARIANT vtParam;
vtParam.vt=VT_I4;
vtParam.intVal=1;
if(m_bShowName)
m_Report->Areas->GetItem("D")->GetSections()->GetItem(vtParam)->Suppress=false;
else
m_Report->Areas->GetItem("D")->GetSections()->GetItem(vtParam)->Suppress=true;
vtParam.intVal=2;
if(m_bShowAddress)
m_Report->Areas->GetItem("D")->GetSections()->GetItem(vtParam)->Suppress=false;
else
m_Report->Areas->GetItem("D")->GetSections()->GetItem(vtParam)->Suppress=true;
vtParam.intVal=3;
if(m_bShowJob)
m_Report->Areas->GetItem("D")->GetSections()->GetItem(vtParam)->Suppress=false;
else
m_Report->Areas->GetItem("D")->GetSections()->GetItem(vtParam)->Suppress=true;
vtParam.intVal=4;
if(m_bShowLike)
m_Report->Areas->GetItem("D")->GetSections()->GetItem(vtParam)->Suppress=false;
else
m_Report->Areas->GetItem("D")->GetSections()->GetItem(vtParam)->Suppress=true;
vtParam.intVal=5;
if(m_bShowProp)
m_Report->Areas->GetItem("D")->GetSections()->GetItem(vtParam)->Suppress=false;
else
m_Report->Areas->GetItem("D")->GetSections()->GetItem(vtParam)->Suppress=true;
m_wndCRViewer.Refresh();
- 在VC6中使用水晶报表8.5
- 在Delphi 中如何使用水晶报表
- 在VB中使用水晶报表总结
- 在VC中使用水晶报表
- 在C#中使用水晶报表
- 【转】在VC中使用水晶报表
- 在VC中使用水晶报表
- 在Winform中使用水晶报表(Push)
- 在ASP.NET中使用水晶报表
- 在水晶报表中使用Code128条形码
- 水晶报表在VC6.0中的使用方法
- 水晶报表在VC6.0中的使用方法
- 水晶报表在VC6.0应用
- 如何在水晶报表中使用条形码……
- 如何在水晶报表中使用条形码……
- 在水晶报表中使用带参数的命令数据源
- 在水晶报表中使用一维和二维条码
- 如何在.Net Web应用中使用水晶报表
- FZU——数字游戏
- 水晶报表在VC6.0应用
- 解决Android中,禁止ScrollView内的控件改变之后自动滚动
- VC++中经常用到的类型转换(总结)
- nand flash 与nor flash
- 在VC6中使用水晶报表8.5
- 期待是冲突之源
- 有1,2,5三种数字组成100的组合的个数,如20个5,19个5和5个1。编程实现。
- 疯狂java 邮箱分享
- 遍历cocos2d-x 场景树
- 自定义注解@Retention,@Target。。。等用法实例
- 水晶报表在VC++6.0中的简单使用方法
- 【wordpress】基础教程
- 黑马程序员——Java 异常的捕获及处理