SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Need Example

Last post 05-14-2009 9:02 AM by Peter Forstmeier. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 05-06-2009 10:57 AM

    • Arwen
    • Not Ranked
    • Joined on 05-04-2009
    • Posts 4

    Need Example

    Hello to all.
    I'm taking the first steps with Shardevelop 3 and I think it is a good product but I could not understand how to use the sharpreport.
    The problem is I want to use the library NPGsql to connect to a Postgre database but I don't know how to tie the report to this library.
    Actually I need only understand how to work the report of  FormSheet kind so I not have use the Wizard.
    Where can I find an example of a simple report (FormSheet type)?

    Thanks to all
     
    PS.: I have installed sharreport as shardevelop plugins .
  • 05-06-2009 2:39 PM In reply to

    Re: Need Example

    Hi Arwen,

    using FormSheet reports is very easy.

    a) under Tools select 'Report Generator' and you will have a plain report. Drag Items from the Toolbox and watch the Preview.

    b) To start the ReportWizard, select File/New/Misc select report and the Wizard will start. On the first WizardPage select 'FormSheet' and click Finish.

    Hope this was helpfull

    Peter

     

     

  • 05-06-2009 5:48 PM In reply to

    • Arwen
    • Not Ranked
    • Joined on 05-04-2009
    • Posts 4

    Re: Need Example

    Hi Peter .
     
    I have 2 problems now  
    1) How do I use a report in my program ?
    2) I tried to generate a sdr file with only a few Label but once I save it when I reopen is empty !
    How can I fix this ?
    This problem happens to me on two different computers .
     
    Thanks Peter
     
    Peter Forstmeier:

    Hi Arwen,

    using FormSheet reports is very easy.

    a) under Tools select 'Report Generator' and you will have a plain report. Drag Items from the Toolbox and watch the Preview.

    b) To start the ReportWizard, select File/New/Misc select report and the Wizard will start. On the first WizardPage select 'FormSheet' and click Finish.

    Hope this was helpfull

    Peter

  • 05-06-2009 6:03 PM In reply to

    • Arwen
    • Not Ranked
    • Joined on 05-04-2009
    • Posts 4

    Re: Need Example

    Opssss!!

    And if i do a rigth clik on the reopened report sharpdevelop go in crash.

    This is the message :

    SharpDevelop Version : 3.0.0.3800
    .NET Version         : 2.0.50727.3053
    OS Version           : Microsoft Windows NT 5.1.2600 Service Pack 3
    Current culture      : Italian (Italy) (it-IT)
    Working Set Memory   : 78740kb
    GC Heap Memory       : 19697kb

    Exception thrown:
    System.ObjectDisposedException: Impossibile accedere a un oggetto eliminato.
    Nome oggetto: 'RootReportModel'.
       in System.Windows.Forms.Control.CreateHandle()
       in System.Windows.Forms.Control.get_Handle()
       in System.Windows.Forms.Design.DesignerFrame.WndProc(Message& m)
       in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       in System.Windows.Forms.Design.PbrsForward.System.Windows.Forms.IWindowTarget.OnMessage(Message& m)
       in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    ---- Recent log messages:
    18:00:59.415 [1] DEBUG - UpdatePropertyGridReplacementControl
    18:00:59.415 [1] DEBUG - UpdateSelectedObjectIfActive
    18:00:59.415 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
    18:01:00.275 [1] DEBUG - UpdateSelectedObjectIfActive
    18:01:00.728 [1] DEBUG - UpdateSelectedObjectIfActive
    18:01:02.025 [1] INFO - Open file C:\Documents and Settings\franaria\Documenti\SharpDevelop Projects\Prova2\Report1.srd
    18:01:02.025 [1] DEBUG - ActiveWorkbenchWindowChanged to ICSharpCode.SharpDevelop.Gui.SdiWorkspaceWindow, Text: Report1.srd
    18:01:02.025 [1] DEBUG - NavigationService
     ActiveViewContent: Report1.srd
               Subview: Progettazione
    18:01:02.025 [1] DEBUG - ActiveViewContentChanged to ICSharpCode.Reports.Addin.ReportDesignerView
    18:01:02.040 [1] INFO - Form Designer: BEGIN INITIALIZE
    18:01:02.040 [1] DEBUG - Forms designer: DesignerLoader loading...
    18:01:02.056 [1] DEBUG - Report designer: DesignerLoader loaded, HasSucceeded=True
    18:01:02.072 [1] DEBUG - ActiveContentChanged to ICSharpCode.Reports.Addin.ReportExplorerPad
    18:01:02.072 [1] DEBUG - FormsDesigner loaded, setting ActiveDesignSurface to System.ComponentModel.Design.DesignSurface
    18:01:02.072 [1] DEBUG - Forms designer: DesignerLoader unloading...
    18:01:02.087 [1] DEBUG - Forms designer: DesignerLoader unloading...
    18:01:02.087 [1] DEBUG - Report designer: DesignerLoader loaded, HasSucceeded=False
    18:01:02.087 [1] INFO - Form Designer: END INITIALIZE
    18:01:02.150 [1] DEBUG - UpdateHostIfActive
    18:01:02.150 [1] DEBUG - IDEContainer: Connecting property grid to service provider
    18:01:02.150 [1] DEBUG - UpdateSelectedObjectIfActive
    18:01:02.150 [1] DEBUG - UpdateSelectableIfActive
    18:01:02.150 [1] DEBUG - UpdatePropertyGridReplacementControl
    18:01:02.150 [1] DEBUG - ActiveContentChanged to ICSharpCode.Reports.Addin.ReportDesignerView
    18:01:03.322 [1] ERROR - ThreadException caught
    --> Exception:
    System.ObjectDisposedException: Impossibile accedere a un oggetto eliminato.
    Nome oggetto: 'RootReportModel'.
       in System.Windows.Forms.Control.CreateHandle()
       in System.Windows.Forms.Control.get_Handle()
       in System.Windows.Forms.Design.DesignerFrame.WndProc(Message& m)
       in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       in System.Windows.Forms.Design.PbrsForward.System.Windows.Forms.IWindowTarget.OnMessage(Message& m)
       in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    ---- Post-error application state information:
    Installed 3rd party AddIns: [SharpDevelopReports, Enabled=True, Action=Enable]
    Workbench.ActiveContent: ICSharpCode.Reports.Addin.ReportDesignerView
    ProjectService.OpenSolution: [Solution: FileName=C:\Documents and Settings\franaria\Documenti\SharpDevelop Projects\Prova2\Prova2.sln, HasProjects=True, ReadOnly=False]
    ProjectService.CurrentProject: [CSharpProject: Prova2]

  • 05-14-2009 9:02 AM In reply to

    Re: Need Example

     Hi Arwen,

    sorry for being that late but i'm very busy in my main job.

    What version of SharpReport did you use?

    Please get the newest from the repository

    svn://sharpdevelop.net/sharpreport/branches/designer3.0

    This will be the standalone version.

    I just try to reproduce your problem but can't find any errors.

    Peter

     

     

     

Page 1 of 1 (5 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.