LoadReport() public method

Loads the report.
public LoadReport ( Uri filename ) : void
filename System.Uri /// Filename. ///
return void
Beispiel #1
0
	public MainWindow (): base (Gtk.WindowType.Toplevel)
	{
		Build ();

		// Before using any xwt code you must initialize its engine as gtk
		// See https://groups.google.com/forum/?fromgroups=#!topic/xwt-list/9d2kb4cf5GU
		Xwt.Application.Initialize(Xwt.ToolkitType.Gtk);
		Xwt.Engine.Toolkit.ExitUserCode(null);
		
		rv = new LibRdlCrossPlatformViewer.ReportViewer();
		rv.DefaultBackend = LibRdlCrossPlatformViewer.Backend.XwtWinforms;
		
		// Since this is an example I just hard code the report path. 
		// In your own application you will want to provice a method to select reports.
#if DEBUG
		if (System.Environment.MachineName == "GILL-PC")
		{
			rv.LoadReport(new Uri(@"C:\Users\Peter\Projects\My-FyiReporting\Examples\SqliteExamples\SimpleTest1.rdl"));
		}
		else if (System.Environment.MachineName == "gill-desktop")
		{
			rv.LoadReport(new Uri(@"/home/peter/projects/My-FyiReporting/Examples/SqliteExamples/SimpleTest1.rdl"));
		}
#endif
		
		// Here we convert the xwt VBox to a Gtk widget
		Gtk.Widget w = (Gtk.Widget)Xwt.Engine.WidgetRegistry.GetNativeWidget(rv);

		this.Add(w);
		

	}
    public MainWindow() : base(Gtk.WindowType.Toplevel)
    {
        Build();

        // Before using any xwt code you must initialize its engine as gtk
        // See https://groups.google.com/forum/?fromgroups=#!topic/xwt-list/9d2kb4cf5GU
        Xwt.Application.Initialize(Xwt.ToolkitType.Gtk);
        Xwt.Engine.Toolkit.ExitUserCode(null);

        rv = new LibRdlCrossPlatformViewer.ReportViewer();
        rv.DefaultBackend = LibRdlCrossPlatformViewer.Backend.XwtWinforms;

        // Since this is an example I just hard code the report path.
        // In your own application you will want to provice a method to select reports.
#if DEBUG
        if (System.Environment.MachineName == "GILL-PC")
        {
            rv.LoadReport(new Uri(@"C:\Users\Peter\Projects\My-FyiReporting\Examples\SqliteExamples\SimpleTest1.rdl"));
        }
        else if (System.Environment.MachineName == "gill-desktop")
        {
            rv.LoadReport(new Uri(@"/home/peter/projects/My-FyiReporting/Examples/SqliteExamples/SimpleTest1.rdl"));
        }
#endif

        // Here we convert the xwt VBox to a Gtk widget
        Gtk.Widget w = (Gtk.Widget)Xwt.Engine.WidgetRegistry.GetNativeWidget(rv);

        this.Add(w);
    }
Beispiel #3
0
        public static void Main(string [] args)
        {
            Application.Initialize("Xwt.GtkBackend.GtkEngine, Xwt.Gtk, Version=1.0.0.0");

            Window w = new Window();
            w.Title = "Xwt Demo Application";
            w.Width = 500;
            w.Height = 400;

            ReportViewer rv = new ReportViewer();
            rv.LoadReport(new Uri(@"C:\Users\Peter\Projects\My-FyiReporting\Examples\SqliteExamples\SimpleTest1.rdl"));

            w.Content = rv;

            w.Show();

            Application.Run();

            w.Dispose();
        }
Beispiel #4
0
        public static void Main(string [] args)
        {
            Application.Initialize("Xwt.GtkBackend.GtkEngine, Xwt.Gtk, Version=1.0.0.0");

            Window w = new Window();

            w.Title  = "Xwt Demo Application";
            w.Width  = 500;
            w.Height = 400;

            ReportViewer rv = new ReportViewer();

            rv.LoadReport(new Uri(@"C:\Users\Peter\Projects\My-FyiReporting\Examples\SqliteExamples\SimpleTest1.rdl"));

            w.Content = rv;

            w.Show();

            Application.Run();

            w.Dispose();
        }