[dba-VB] ReportViewer and report design

Doug Murphy dw-murphy at cox.net
Mon Mar 2 21:11:33 CST 2009


I downloaded the files and the VS2008 version built fine. Is the Northwind
database the regular Northwind file from Microsoft? If so I already have it
installed for SQL Server 2005.

Thank you all for allowing me to participate.  This will be a learning
experience for me. My recent coding background is VBA and VB.Net. C# seems
readable but I have never built anything in it.

Doug 

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov
Shamil
Sent: Monday, March 02, 2009 1:22 PM
To: Discussion concerning Visual Basic and related programming issues.
Subject: Re: [dba-VB] ReportViewer and report design

Hi SCRUM team and everybody,

My congratulation to the SCRUM team that we got 5 team members!

I have made new versions of solutions and also MS SQL 2005 db model.

Here are downloads:

http://smsconsulting.spb.ru/download/scrum/nwnet1.zip
http://smsconsulting.spb.ru/download/scrum/nwnetdbs.zip

Here is the copy on another server:

http://shamils-4.hosting.parking.ru/download/nwnet1.zip
http://shamils-4.hosting.parking.ru/download/nwnetdbs.zip

You can find three solutions now:

- one for VS2005;
- another for VS2008;
- third one targeted for C# 2008 Express but prepared with VS2008 Prof.
(based on William words that C# 2008 Express can't compile classlibs  I have
just made small Winforms FE app and used classlibs compiled by VS2008 Prof).

These "tricks" caused by different versions of VS we have.

You can find that I moved placeholder forms and reports into classlibs to
make projects configiration which will allow Mike to just develop a form in
C# Express and use the forms and reports from classlibs we develop in full
VS versions.

I have also set references for ReportViewer control v.9 for VS2008 and C#
Express 2008 targeted solutuons. Mike could you please test how they work
now on your system? (Hope they will work OK, "fingers crossed").
Please Mike try to compile VS2008 targeted solution and C# 2008 targeted
solution under C# 2008 Express. If the first will compile, build and run OK
then classlibs with Forms and Reports could be merged back to FE. And having
Express, Standard and Professioanl editions will not result in excessive
manual synchronization work.

Who can try to build VS2005 sample solution under VS 2005 Standard and/or
VS2008 sample under VS2008 Standard edition to see they compile OK and
thefore some of us can have Standard Editons and some of us can have
Professional editions to work on this project?

Compiled apps now have the following main executables.

VS2005 or VS2008 Prof or Standard (maybe C# 2008 Express will work just find
with VS2008 Prof. solution) =================================
NorthWind.NET.FE.exe NorthWind.NET.FE.Forms.dll NorthWind.NET.FE.Reports.dll
NorthWind.NET.Utilities.dll

C# 2008 Express (but compiled here under VS2008 Prof) =================
NorthWind.NET.FE.Express.exe NorthWind.NET.FE.Forms.dll - just classlib dll
NorthWind.NET.FE.Reports.dll - just classlib dll NorthWind.NET.Utilities.dll
- just classlib dll

Guys, may I ask now you to decide which development environmnet to use - we
seems to be moving to 2008 versions Express, Standard, Prof (Gustav, Mike,
Doug, Shamil), but John has VS2005 version only and can't get 2008 version.

What can we do? - I'd follow your decision - the issue with having 2005 and
2008 versions is that 2008 has some new C# language etc. features and
therefore downgrading forms/reports developed in 2008 versions could be an
issue - I have never tried to do that downgrade. Maybe you can try to test
how it works and if it works well then we can safely (with a little
additonal work) use both VS2005 and VS2008 versions. Of we all can use 2005
versions?

Another issue with reports develped in 2008 versions - they expected to be
quite different from 2005 versions (but 2005 versions could be upgraded to
2008 versions smoothly).

Database model in the above download is a proposal - I have made some
changes after upsizing tables. I didn't upsize any queries because most of
them will be developed differently I expect. I have also added timestamp
fields to all tables - almost never used them before, wanted to try to use
them in this project - if you think they are not needed then we can remove
it.

Please note that SCRUMMaster role, which I have committed to for this
project is not as a manager, mentor, director - this is a facilitator role
IOW you as a team make the final decicions - I can participate in making
such decisions because I have to share SCRUMMaster and developer roles in
this project but my voice/vote shouldn't have any more "weight" that your
votes/voices.

To move steadily forward we have to make decisions every day - small, not
time consuming  - spending approx. 1 hour a working day for this project
(for me it's not yet the case here for this project as I'm spending more
time on it every day currently but that's OK for now. Hope you're not
missing your main business working for this project...) ...

Please be more active - if you wanted to do all the further preparatory work
when we will start the project - let it be so - then we can start next week
- it may take more time if we will not align/find a way how to work with
different version of VS, how to share files etc. before we start actual
development...

I think decision on selecting of VS versions and that we can work and share
sources with that selection should be done in advance - if it will not work
OK we will not be able to make this project developed effectively...

May I ask you to make decisions on:

- VS versions you will use and how to solve some discrepancy if that will be
2005 and 2006 versions Express, Standard and Professional;

- how we share/synchronize projects: current options: PopFly, MS Live
SkyDrive, Google, <please add more> (after all we can "synchronize" them by
just exchanging source files)...

We (you) will have to make some other decisions in preparation the project
after the two above made/tested.

I can participate in discussions but I'd prefer to be a kind of "lurker" for
several days now because:

- this is not SCRUMMaster responsibility to force the team to make
decisions;
- I have made quite some proposals already - it's your turn now :)...

FYI: I have here an important deadline and I have to work intensively on
another project for the next three-four days.

Maybe we can/should shift the project start date for additonal week? - I can
get back into active mode in the end of this week...

For the next three-four days I will be able to spend only one-two hours max,
for this project, and I wanted to install TargetProcess during this time and
to give it to you to use in the beginning of the next week to define
together ProductBacklog (features) and to plan the first SCRUM Sprint etc...

Please ask questions if needed on VS versions and other issues and I will
try to answer promptly...

Thank you.

--
Shamil


-----Original Message-----
From: "Mike Mattys" <mmattys at rochester.rr.com>
To: "Discussion concerning Visual Basic and related programming
issues."<dba-vb at databaseadvisors.com>
Date: Mon, 2 Mar 2009 14:11:00 -0500
Subject: Re: [dba-VB] ReportViewer and report design

> I installed all Windows Update stuff missed since December Also 
> installed Visual C# SP1 and VWD SP1 (Includes SQLS2008) Continued 
> installing VWD_RV_Addon_enu.exe and ReportViewer.exe.
> 
> Shamil's solution will run in Debugging but Build give me these errors:
> Error 1
> The type or namespace name 'Reporting' does not exist in the namespace 
> 'Microsoft'
> (are you missing an assembly reference?) C:\ ...
> nwnet\NorthWind.NET.VS2008\NorthWind.NET.FE\Reports\SalesByCategoryRep
> ort.Designer.cs [Line] 73 [Column] 27 NorthWind.NET.FE
> 
> Warning 2
> Could not resolve this reference. Could not locate the assembly 
> "Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, 
> PublicKeyToken=b03f5f7f11d50a3a". Check to make sure the assembly 
> exists on disk. If this reference is required by your code, you may 
> get compilation errors. NorthWind.NET.FE
> 
> Warning 3
> Could not resolve this reference. Could not locate the assembly 
> "Microsoft.ReportViewer.WinForms, Version=8.0.0.0, Culture=neutral, 
> PublicKeyToken=b03f5f7f11d50a3a". Check to make sure the assembly 
> exists on disk. If this reference is required by your code, you may 
> get compilation errors. NorthWind.NET.FE
> 
> Warning 4
> Could not find type 'Microsoft.Reporting.WinForms.ReportViewer'.  
> Please make sure that the assembly that contains this type is 
> referenced.  If this type is a part of your development project, make 
> sure that the project has been successfully built.  0 0
> 
> Warning 5
> The variable 'reportViewer1' is either undeclared or was never assigned. 
> C:\Documents and Settings\Michael\My Documents\Net 
> Team\nwnet\NorthWind.NET.VS2008\NorthWind.NET.FE\Reports\SalesByCatego
> ryReport.Designer.cs
> 59 0
> 
> Warning 6
> The referenced component 'Microsoft.ReportViewer.Common' could not be
found.
> 
> Warning 7
> The referenced component 'Microsoft.ReportViewer.WinForms' could not 
> be found.
> 
> Doesn't look too serious! :)
> 
> -
> Michael R Mattys
> MapPoint and Database Dev
> www.mattysconsulting.com
> -
> ----- Original Message -----
> From: "Mike Mattys" <mmattys at rochester.rr.com>
> To: "Discussion concerning Visual Basic and related programming issues." 
> <dba-vb at databaseadvisors.com>
> Sent: Monday, March 02, 2009 9:51 AM
> Subject: Re: [dba-VB] ReportViewer and report design
> 
> 
> > Well, some of  this day will be spent on -> Windows Update Express 
> > SP1
> >
> > -
> > Michael R Mattys
> > MapPoint and Database Dev
> > www.mattysconsulting.com
> > -
> > ----- Original Message -----
> > From: "Gustav Brock" <Gustav at cactus.dk>
> > To: <dba-vb at databaseadvisors.com>
> > Sent: Monday, March 02, 2009 9:29 AM
> > Subject: [dba-VB] ReportViewer and report design
> >
> >
> >> Hi Shamil et al
> >>
> >> Here (great site, bookmark that):
> >>
> >> http://www.gotreportviewer.com/
> >>
> >> it is stated that the ReportViewer is a separate download for the 
> >> Express versions.
> >> The 2008 version can be found here:
> >>
> >> http://www.microsoft.com/downloads/details.aspx?familyid=CC96C246-6
> >> 1E5-4D9E-BB5F-416D75A1B9EF&displaylang=en
> >>
> >> However, I'm not sure, if this allows for _design_ of reports in 
> >> the Express versions.
> >> According to this:
> >>
> >> http://blogs.microsoft.co.il/blogs/adlaim/archive/2008/12/27/report
> >> -viewer-for-visual-web-developer-express.aspx
> >>
> >> the Web edition does, and the report designer can be downloaded here:
> >>
> >> http://www.microsoft.com/downloads/details.aspx?FamilyID=b67b9445-c
> >> 206-4ff7-8716-a8129370fa1d&DisplayLang=en
> >>
> >> but nothing is stated for the C# Express Developer for WinForms.
> >>
> >> Could someone please check this out?
> >>
> >> /gustav
> >>
> >>
> >>>>> Gustav at cactus.dk 02-03-2009 08:40:26 >>>
> >> Hi Shamil
> >>
> >> They both do here on WinXP. Will try later at home where Vista is 
> >> running but as I use the two machines quite a lot with VS and 
> >> reports, I would be highly surprised if your sample would fail.
> >>
> >> /gustav
> >>
> >>
> >>>>> mcp2004 at mail.ru 02-03-2009 07:38 >>>
> >>
> >> If VS2005 and VS2008 Standard Edition compile well the following 
> >> sample solutions
> >>
> >> http://smsconsulting.spb.ru/download/scrum/nwnet.zip (~400KB)
> >>
> >> and allow to use .NET ReportViewer control in design mode they also 
> >> qualify as development evnironment.
> >>
> >>
> >>
> >> _______________________________________________
> >> dba-VB mailing list
> >> dba-VB at databaseadvisors.com
> >> http://databaseadvisors.com/mailman/listinfo/dba-vb
> >> http://www.databaseadvisors.com
> >>
> >
> > _______________________________________________
> > dba-VB mailing list
> > dba-VB at databaseadvisors.com
> > http://databaseadvisors.com/mailman/listinfo/dba-vb
> > http://www.databaseadvisors.com
> > 
> 
> _______________________________________________
> dba-VB mailing list
> dba-VB at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/dba-vb
> http://www.databaseadvisors.com
> 

_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com




More information about the dba-VB mailing list