102 lines
2.6 KiB
C++
102 lines
2.6 KiB
C++
#if !defined(AFX_RPTSETDLG_H__E013A0C2_3DD8_11D4_964F_00C0F02C4B69__INCLUDED_)
|
|
#define AFX_RPTSETDLG_H__E013A0C2_3DD8_11D4_964F_00C0F02C4B69__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// RptSetDlg.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CRptSetDlg dialog
|
|
#include "gzcombo.h"
|
|
#include "gzrset.h"
|
|
#include "gzk.h"
|
|
#include "afxwin.h"
|
|
#import "C:\Program Files\Crystal Decisions\Report Designer Component\craxdrt9.dll" no_namespace rename("FindText","crFindText")
|
|
|
|
class CRptSetDlg : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
void Security();
|
|
//long m_lDevModeSize;
|
|
~CRptSetDlg();
|
|
bool bFirstRun;
|
|
void SaveRecord();
|
|
//required variables for printing
|
|
//CString m_strDEVMODE;
|
|
CString m_strPORT;
|
|
CString m_strDEVICE;
|
|
CString m_strDRIVER;
|
|
long m_lPaperOrientation;
|
|
long m_lPaperSize;
|
|
long m_lPaperSource;
|
|
long m_lDuplexType;
|
|
|
|
CString m_strCurrentReport;
|
|
|
|
void ClearFields();
|
|
void FillFields();
|
|
bool m_bEditing;
|
|
bool m_bNew;
|
|
|
|
CRptSetDlg(CWnd* pParent = NULL); // standard constructor
|
|
GZRset* rs;
|
|
GZK* cryp;
|
|
CSpApp* m_pApp;
|
|
// Dialog Data
|
|
//{{AFX_DATA(CRptSetDlg)
|
|
enum { IDD = IDD_REPORTSETUP };
|
|
CButton m_btnSelectReport;
|
|
CButton m_btnSelectPrinter;
|
|
CButton m_btnReset;
|
|
CButton m_btnDefaultReport;
|
|
CButton m_btnDefaultPrinter;
|
|
CButton m_ckPreview;
|
|
CEdit m_edPrinterSelected;
|
|
CEdit m_edCustomReport;
|
|
CEdit m_edCopies;
|
|
//CButton m_ckCustomDefault;
|
|
CgzCombo m_cbReports;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CRptSetDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
private:
|
|
IReportPtr m_Report;
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CRptSetDlg)
|
|
virtual void OnOK();
|
|
afx_msg void OnBtndefaultprinter();
|
|
afx_msg void OnBtnselectprinter();
|
|
afx_msg void OnBtndefaultreport();
|
|
afx_msg void OnBtnselectreport();
|
|
afx_msg void OnBtndone();
|
|
afx_msg void OnBtnreset();
|
|
afx_msg void OnCkcustdefault();
|
|
afx_msg void OnCloseupCbreports();
|
|
virtual BOOL OnInitDialog();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
public:
|
|
CString m_strCurrentReportPath;
|
|
CStatic m_lblDefaultReportFile;
|
|
CString FormatPaperSettingsString(void);
|
|
afx_msg void OnBnClickedCkpreview();
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_RPTSETDLG_H__E013A0C2_3DD8_11D4_964F_00C0F02C4B69__INCLUDED_)
|