Beispiel #1
0
        public PreviewForm(Document.SectionDocument doc, Form parentForm)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            MdiParent = parentForm;
            arvMain.LoadDocument(doc);
            Text = doc.Name;
        }
Beispiel #2
0
 /// <summary>
 /// mnuFileOpen_Click - Used to open a generated report file (RDF) and display it.
 /// </summary>
 private void mnuFileOpen_Click(object sender, EventArgs e)
 {
     dlgOpenFile.Filter          = "ActiveReports Document Files (*.rdf)|*.rdf";
     dlgOpenFile.FileName        = "";
     dlgOpenFile.CheckFileExists = true;
     dlgOpenFile.Title           = "Open a Report Document File";
     if (dlgOpenFile.ShowDialog(this) == DialogResult.OK)
     {
         if (File.Exists(dlgOpenFile.FileName))
         {
             // Load the RDF file.
             Document.SectionDocument doc = new Document.SectionDocument();
             doc.Load(dlgOpenFile.FileName);
             // Open a new Preview Form.
             PreviewForm viewerForm = new PreviewForm(doc, this);
             viewerForm.Show();
         }
     }
 }
Beispiel #3
0
 public ExportForm(Document.SectionDocument sectionDocument)
 {
     _sectionDocument = sectionDocument;
     InitializeComponent();
 }