Changing datasource in rdlc, VB.NET

by Admin 10/16/2008 3:04:00 AM

Note that the datasource name needs to match what was set up in the reportviewer, in this case: ReportDataSet_TestFinancial

<DataSources>

<rsweb:ReportDataSource DataSourceId="ObjectDataSource1"

Name="ReportDataSet_TestFinancial" />

</DataSources>

Dim params As SqlParameter() = {New SqlParameter("@StartDate", "8/23/2007"), _

New SqlParameter("@EndDate", "9/27/2007"), _

New SqlParameter("@UnitID", 61)}

Dim dsFinancials As DataSet

Try

dsFinancials = SqlHelper.ExecuteDataset(Global_asax.gSqlConStr, 30, "spGetFinancialsWeekly", params)

Catch ex As Exception

Dim ErrorHdl As _Error = New _Error

ErrorHdl.HandleException(ex)

dsFinancials = Nothing

End Try

rpvFinancialsWeekly.LocalReport.DataSources.Clear()

rpvFinancialsWeekly.LocalReport.DataSources.Add(
New Microsoft.Reporting.WebForms.ReportDataSource("ReportDataSet_TestFinancial", dsFinancials.Tables(0)))

rpvFinancialsWeekly.DataBind()

rpvFinancialsWeekly.LocalReport.Refresh()

Tags:

~ Operator in .NET

by Admin 10/7/2008 6:06:00 AM

Can only be used to resolve web server control paths. It takes you to the web applications root folder

Tags:

First Blog Entry

by Admin 7/31/2008 3:48:00 AM

test

test edit

Tags:

Welcome to BlogEngine.NET 1.3

by Admin 12/21/2007 6:00:00 PM

If you see this post it means that BlogEngine.NET 1.3 is running and the hard part of creating your own blog is done. There is only one thing you need to do from this point on to take full advantage of the blog and that is to set up the first author profile.

Write Permissions

To be able to log in to the blog and writing posts, you need to enable write permissions on the App_Data folder. If you’re blog is hosted at a hosting provider, you can either log into your account’s admin page or call the support. You need write permissions on the App_Data folder because all posts and comments are saved as XML files and placed in the App_Data folder.

Username and password

When you've got write permissions to the App_Data folder, you need to change the username and password. Find the sign-in link located either at the bottom or top of the page depending on your current theme and click it. Now enter "admin" in both the username and password fields and click the button. You will now see an admin menu appear. It has a link to the "Users" admin page. From there you can change the username and password.

On the web

You can find BlogEngine.NET on the official website. Here you'll find tutorials, documentation, tips and tricks and much more. The ongoing development of BlogEngine.NET can be followed at CodePlex where the daily builds will be published for anyone to download.

Good luck and happy writing.

The BlogEngine.NET team

Tags: ,

BlogEngine.NET

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  November 2017  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

Recent comments

Tags

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2017

Sign in