SharpDevelop Community

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

How to run SharpReport created in pull method from windows form using VB.Net

Last post 07-17-2009 8:22 PM by Peter Forstmeier. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 05-01-2009 5:25 AM

    • Rajesh
    • Not Ranked
    • Joined on 05-01-2009
    • Posts 4

    How to run SharpReport created in pull method from windows form using VB.Net

     I have created a sharpreport using pull method and it showing by reportviewer but when writing the following code to execute it from windows form it throws an exception "Type initializer for ICSharpCode.Reports.Core.Exporter.ExportTex. 

     

    Sub Button1Click(ByVal sender As Object, ByVal e As EventArgs)
        Dim Reportpath as String
        Dim engine As New ReportEngine
        Dim ReportModel As New ReportModel
        Dim pageBuilder As ICSharpCode.Reports.Core.Exporter.BasePager
        Reportpath = "F:\sharpdevelop\SharpReportExample\SharpReportExample\Report1.srd"
        reportModel = ReportEngine.LoadReportModel(reportPath)
        Dim previewControl1 As New ICSharpCode.Reports.Core.ReportViewer.PreviewControl()
        previewControl1.SetupAsynchron(reportModel)
        previewControl1.Anchor = DirectCast(((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) Or   System.Windows.Forms.AnchorStyles.Left) Or System.Windows.Forms.AnchorStyles.Right)), System.Windows.Forms.AnchorStyles)
        previewControl1.Size = New System.Drawing.Size(Width, Height)
        Me.ClientSize = New System.Drawing.Size(Width, Height)
        Controls.Add(previewControl1)
     
        End Sub

      Please give reply. 

  • 05-04-2009 8:03 AM In reply to

    Re: How to run SharpReport created in pull method from windows form using VB.Net

    Hi,

    and sorry for this late answer.

    Please have a look to the sample's you will find plenty of code to run all the possible reports.

    The samples are a little outdated but calling the reports should work.

    please let me know if this was helpfull to you

    Peter

     

     

  • 05-17-2009 7:29 AM In reply to

    • Rajesh
    • Not Ranked
    • Joined on 05-01-2009
    • Posts 4

    Re: How to run SharpReport created in pull method from windows form using VB.Net

    No I did not get any help in this regard. Kindly give some source code on this issue.

     

    Yours sincerely

    Rajesh

  • 07-17-2009 7:01 AM In reply to

    • Rajesh
    • Not Ranked
    • Joined on 05-01-2009
    • Posts 4

    Re: How to run SharpReport created in pull method from windows form using VB.Net

    Hi Peter

    From where can I get all the samples on SharpDevelop Reports

     

    Rajesh

  • 07-17-2009 8:22 PM In reply to

    Re: How to run SharpReport created in pull method from windows form using VB.Net

     Hi,

    you will find the latest sources and some samples here:

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

    The samples are a little outdated but most of tem should work

    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.