| Edward |
| Advanced Member |
|
|
|
|
| None Specified |
|
| Friday, June 09, 2006 |
| Friday, March 12, 2010 1:40:23 AM |
2,617 [18.12% of all post / 1.68 posts per day] |
|
Hi,
Yes, that is possible:
string p = "C:\\Images\\" + FILES.FILE_NAME.ToString()+".jpg";
im.Image = Image.FromFile(p);
Thank you.
|
Hi Jair,
Please make sure that for each month there is a row with '0' value in the DataSource, otherwise there is no to render line chart correctly.
Thank you.
|
Hi
Please make sure that GAC contained 2009.3 version of Stimulsoft* dlls.
Also delete references in your solution and add them again.
Thank you.
|
Hi
Sorry, EmptyBand will not work inside of the Subreport, please change your report as in the attached template.
Thank you.
|
Hi,
Unfortunately you can not change now position of Zoom control and also please describe your task with Empty band.
Thank you.
|
Hi Danilo,
Unfortunately there is no way to re-create report using only code from code tab. You always need to keep mrt file to be able to modify report template later.
Thank you.
|
Hi
Thanks for the images and explanations. Please select Page1 in the 'Properties' editor and set LargeHeight in true. Thank you.
|
Hi Patrick,
Yes, you are right. The properties:
StiOptions.Preview.Window.ReportSaveLoadPath = reportPath; StiOptions.Designer.ReportSaveLoadPath = reportPath;
will work only for 'Save' buttons in the preview control and in the designer control respectively.
If you need control over 'Save as' button in the designer, then please reassign SaveAs event handler as follows:
Code:private void Form1_Load(object sender, EventArgs e) { StiOptions.Viewer.Windows.ReportSaveLoadPath = "c:\\"; StiOptions.Designer.ReportSaveLoadPath = "c:\\"; StiReport report = new StiReport(); report = new StiReport();
// you can also hide Save As button //StiMainMenuService mainMenuService = StiMainMenuService.GetService(); //mainMenuService.ShowFileReportSaveAs = false;
StiDesigner.SavingReport += new StiSavingObjectEventHandler(On_SavingReport); StiDesigner.DontAskSaveReport = true; report.Design();
}
private void On_SavingReport(object sender, StiSavingObjectEventArgs e) { StiReport report = (sender as StiDesignerControl).Report; // Checking if the filename to save is known or not // If you set static option StiDesigner.DontAskSaveReport = true, then e.SaveAs is true only when SaveAs button is pressed. if (e.SaveAs == true) { SaveFileDialog mySaveDialog = new SaveFileDialog(); mySaveDialog.InitialDirectory = "D:\\"; mySaveDialog.DefaultExt = ".mrt"; mySaveDialog.FileName = Path.GetFileNameWithoutExtension((sender as StiDesignerControl).ReportFileName); do { if (mySaveDialog.ShowDialog() == DialogResult.OK) { if (Path.GetDirectoryName(mySaveDialog.FileName) == mySaveDialog.InitialDirectory) { report.Save(mySaveDialog.FileName); MessageBox.Show("Saving complete."); (sender as StiDesignerControl).ReportFileName = mySaveDialog.FileName; e.Processed = true; } else { MessageBox.Show("You can save the report only in " + mySaveDialog.InitialDirectory.ToString() + " folder."); } } else { break; } } while (Path.GetDirectoryName(mySaveDialog.FileName) != mySaveDialog.InitialDirectory); } else { //Here is the code which fires after the filename had been set to the specified folder report.Save(report.ReportFile); } }
Thank you.
|
Hi
No problem, please let us know if you need any help then.
I did not find any problem in the project you sent us in your previous file.
If possible, please attach some images which can be used for illustration of the problem.
Thank you.
|
Hi
Thanks for the project. Please change slightly your code:
Stimulsoft.Controls.Win.DotNetBar.ButtonItem myButton1 = new Stimulsoft.Controls.Win.DotNetBar.ButtonItem(); previewForm.ViewerControl.ToolBar.Items.Add(myButton1);
Thank you.
|
|