crystalreportviewer4.h

来自「一个很好用的报表控件」· C头文件 代码 · 共 126 行

H
126
字号
#if !defined(AFX_CRYSTALREPORTVIEWER4_H__8AE88BEF_7F54_4C65_B4F6_C2C80C701A3C__INCLUDED_)
#define AFX_CRYSTALREPORTVIEWER4_H__8AE88BEF_7F54_4C65_B4F6_C2C80C701A3C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++

// NOTE: Do not modify the contents of this file.  If this class is regenerated by
//  Microsoft Visual C++, your modifications will be overwritten.


// Dispatch interfaces referenced by this interface
class CCRVTrackCursorInfo;

/////////////////////////////////////////////////////////////////////////////
// CCrystalReportViewer4 wrapper class

class CCrystalReportViewer4 : public CWnd
{
protected:
	DECLARE_DYNCREATE(CCrystalReportViewer4)
public:
	CLSID const& GetClsid()
	{
		static CLSID const clsid
			= { 0xc4847596, 0x972c, 0x11d0, { 0x95, 0x67, 0x0, 0xa0, 0xc9, 0x27, 0x3c, 0x2a } };
		return clsid;
	}
	virtual BOOL Create(LPCTSTR lpszClassName,
		LPCTSTR lpszWindowName, DWORD dwStyle,
		const RECT& rect,
		CWnd* pParentWnd, UINT nID,
		CCreateContext* pContext = NULL)
	{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }

    BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
		const RECT& rect, CWnd* pParentWnd, UINT nID,
		CFile* pPersist = NULL, BOOL bStorage = FALSE,
		BSTR bstrLicKey = NULL)
	{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
		pPersist, bStorage, bstrLicKey); }

// Attributes
public:

// Operations
public:
	LPUNKNOWN GetReportSource();
	void SetReportSource(LPUNKNOWN newValue);
	BOOL GetDisplayGroupTree();
	void SetDisplayGroupTree(BOOL bNewValue);
	BOOL GetDisplayToolbar();
	void SetDisplayToolbar(BOOL bNewValue);
	BOOL GetEnableGroupTree();
	void SetEnableGroupTree(BOOL bNewValue);
	BOOL GetEnableNavigationControls();
	void SetEnableNavigationControls(BOOL bNewValue);
	BOOL GetEnableStopButton();
	void SetEnableStopButton(BOOL bNewValue);
	BOOL GetEnablePrintButton();
	void SetEnablePrintButton(BOOL bNewValue);
	BOOL GetEnableZoomControl();
	void SetEnableZoomControl(BOOL bNewValue);
	BOOL GetEnableCloseButton();
	void SetEnableCloseButton(BOOL bNewValue);
	BOOL GetEnableProgressControl();
	void SetEnableProgressControl(BOOL bNewValue);
	BOOL GetEnableSearchControl();
	void SetEnableSearchControl(BOOL bNewValue);
	BOOL GetEnableRefreshButton();
	void SetEnableRefreshButton(BOOL bNewValue);
	BOOL GetEnableDrillDown();
	void SetEnableDrillDown(BOOL bNewValue);
	BOOL GetEnableAnimationCtrl();
	void SetEnableAnimationCtrl(BOOL bNewValue);
	BOOL GetEnableSelectExpertButton();
	void SetEnableSelectExpertButton(BOOL bNewValue);
	void ViewReport();
	BOOL GetEnableToolbar();
	void SetEnableToolbar(BOOL bNewValue);
	BOOL GetDisplayBorder();
	void SetDisplayBorder(BOOL bNewValue);
	BOOL GetDisplayTabs();
	void SetDisplayTabs(BOOL bNewValue);
	BOOL GetDisplayBackgroundEdge();
	void SetDisplayBackgroundEdge(BOOL bNewValue);
	CCRVTrackCursorInfo GetTrackCursorInfo();
	short GetActiveViewIndex();
	short GetViewCount();
	void ActivateView(const VARIANT& Index);
	void AddView(const VARIANT& GroupPath);
	void CloseView(const VARIANT& Index);
	VARIANT GetViewPath(short Index);
	void PrintReport();
	void Refresh();
	void SearchForText(LPCTSTR Text);
	void ShowFirstPage();
	void ShowNextPage();
	void ShowPreviousPage();
	void ShowLastPage();
	void ShowNthPage(short PageNumber);
	void Zoom(short ZoomLevel);
	long GetCurrentPageNumber();
	void ShowGroup(const VARIANT& GroupPath);
	BOOL GetIsBusy();
	BOOL GetEnablePopupMenu();
	void SetEnablePopupMenu(BOOL bNewValue);
	BOOL GetEnableExportButton();
	void SetEnableExportButton(BOOL bNewValue);
	BOOL GetEnableSearchExpertButton();
	void SetEnableSearchExpertButton(BOOL bNewValue);
	void SearchByFormula(LPCTSTR formula);
	CString GetViewName(BSTR* pTabName);
	BOOL GetEnableHelpButton();
	void SetEnableHelpButton(BOOL bNewValue);
	VARIANT GetGroup();
	void GetLastPageNumber(long* pageN, BOOL* lastPageKnown);
	void RefreshEx(BOOL refreshServerData);
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CRYSTALREPORTVIEWER4_H__8AE88BEF_7F54_4C65_B4F6_C2C80C701A3C__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?