Stimulsoft Reports.Net
www.stimulsoft.com

Welcome Guest Search | Active Topics | Members | Log In | Register

Profile: Edward
About
User Name: Edward
Forum Rank: Advanced Member
Real Name:
Location
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Friday, June 09, 2006
Last Visit: Friday, March 12, 2010 1:40:23 AM
Number of Posts: 2,617
[18.12% of all post / 1.68 posts per day]
Avatar
Last 10 Posts
Topic: URL of image
Posted: Friday, March 12, 2010 1:37:10 AM
Hi,

Yes, that is possible:

string p = "C:\\Images\\" + FILES.FILE_NAME.ToString()+".jpg";

im.Image = Image.FromFile(p);

Thank you.
Topic: Months with zeroed values do not appear in the line chart...
Posted: Friday, March 12, 2010 1:01:37 AM
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.
Topic: Web Designer Trial
Posted: Thursday, March 11, 2010 3:11:36 AM
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.
Topic: Problem using two SubReport
Posted: Thursday, March 11, 2010 2:36:00 AM
Hi

Sorry, EmptyBand will not work inside of the Subreport, please change your report as in the attached template.

Thank you.
Topic: Problem using two SubReport
Posted: Wednesday, March 10, 2010 1:01:08 AM
Hi,

Unfortunately you can not change now position of Zoom control and also please describe your task with Empty band.

Thank you.
Topic: Get MRT from code
Posted: Wednesday, March 10, 2010 12:58:20 AM
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.
Topic: subreport problam
Posted: Wednesday, March 10, 2010 12:19:12 AM
Hi

Thanks for the images and explanations. Please select Page1 in the 'Properties' editor and set LargeHeight in true.

Thank you.
Topic: Set default report path with ReportSaveLoadPath
Posted: Wednesday, March 10, 2010 12:12:25 AM
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.
Topic: subreport problam
Posted: Tuesday, March 09, 2010 3:14:01 AM
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.
Topic: Problem using two SubReport
Posted: Monday, March 08, 2010 2:18:04 AM
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.

Main Forum Rss Feed : RSS

Powered by Yet Another Forum.net version 1.0.1 - 2/27/2006
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.052 seconds.