I think I have everything that I need

Code: Select all
if (Form1.DialogResult == DialogResult.OK)
{
SaveFileDialog sf = new SaveFileDialog();
sf.Title = "Save pathosis file";
sf.Filter = "Pathosis file (*.pathosis)|*.pathosis";
sf.FileName=ComboBoxControl1.Control.Text+"_"+Format("{0:yyyyMMdd}",Today);
var result = sf.ShowDialog();
if (result == System.Windows.Forms.DialogResult.OK)
{
FileStream fs = new FileStream(sf.FileName, FileMode.Create, FileAccess.Write);
this.ExportDocument(StiExportFormat.Text, fs, new StiTxtExportSettings() { PageRange = new StiPagesRange(1) });
fs.Close();
}
this.RenderedPages.RemoveAt(1);
}
Code: Select all
if (Form1.DialogResult == DialogResult.OK)
{
SaveFileDialog sf = new SaveFileDialog();
sf.Title = "Save pathosis file";
sf.Filter = "Pathosis file (*.pathosis)|*.pathosis";
sf.FileName=ComboBoxControl1.Control.Text+"_"+Format("{0:yyyyMMdd}",Today);
var result = sf.ShowDialog();
if (result == System.Windows.Forms.DialogResult.OK)
{
FileStream fs = new FileStream(sf.FileName, FileMode.Create, FileAccess.Write);
this.ExportDocument(StiExportFormat.Text, fs, new StiTxtExportSettings() { PageRange = new StiPagesRange(1) });
fs.Close();
}
this.RenderedPages.RemoveAt(1);
}
Code: Select all
Page1.UnlimitedBreakable = false;
Page1.UnlimitedHeight = true;