Tuesday, March 27, 2012
Ability to create dynamic subreports within report
Is there a way to programatically change the name (or source) of the subreport at runtime? Would this end up creating a new rdl for each report?
Any help or ideas are greatly appreciated!!
RickGcan you put "all" your sub reports under the master report and hide your sub
reports.
then dynamically, simply show the targeted sub reports.
"RickG" <RickG@.discussions.microsoft.com> a écrit dans le message de
news:BAF79348-FB1D-45B0-861B-4A3BDA30DE58@.microsoft.com...
> I have the need to create a report that contains four subreports. Each of
the four subreports can be any one of 20-30 different reports (layouts
differ).
> Is there a way to programatically change the name (or source) of the
subreport at runtime? Would this end up creating a new rdl for each report?
> Any help or ideas are greatly appreciated!!
> RickGsql
Sunday, March 25, 2012
A4 Page Size settings
--
Rae GOn Feb 12, 9:03 am, RaeG <R...@.discussions.microsoft.com> wrote:
> How can I set a default of A4 Page Size for my Reports?
> --
> Rae G
Go to the report properties, you can set the default height and width
at portion called InteractiveSize, don't forget to same height and
width at the PageSizesql
Thursday, March 22, 2012
A Way To Go To First Row In A Parameter's DataSet?
We have cascading parameters in many of our reports. Many of the subsequent parameters after the previous ones have been selected, will result in a dataset with just one or two rows. Is there anyway to have Reporting Services select that first (and many times the only) record in that dataset?
Thanks!
Unfortunately no, there isn't.Monday, March 19, 2012
A Template for Reports
Does anyone know how to create a template for reports that can be
linked to every report. Changes in the template would then be
automatically reflected in every report connected to the template.
This is a similar paradigm as a css style sheet. There is a
description of way to do this in "Hitchhiker's Guide to SQL Server 2000
Reporting Services", but it is rather cryptic and involves a lot of
complex hacks.
Thanks,
Woody
MCADA simplier approach may be to store your "template" information in a table.
Create a template rdl that pulls the information, such as a Page Header that
displays your corp. image lets say. If you need to ever change it, you just
need to overwrite the record in the table.
Obviously, everyone who designs reports would have to use the template. To
ensure that everyone, in fact, does use the same template report, you can
have them overwrite the default template with the new template. The following
is the path to the default template.
C:\Program Files\Microsoft SQL Server\80\Tools\Report
Designer\ProjectItems\ReportProject\Report.rdl
Hope this helps!
"lwoodyiii" wrote:
> Hi,
> Does anyone know how to create a template for reports that can be
> linked to every report. Changes in the template would then be
> automatically reflected in every report connected to the template.
> This is a similar paradigm as a css style sheet. There is a
> description of way to do this in "Hitchhiker's Guide to SQL Server 2000
> Reporting Services", but it is rather cryptic and involves a lot of
> complex hacks.
> Thanks,
> Woody
> MCAD
>|||Thanks for the help :)!!
a strange problem
But when I executed the same exe on some other machine. having similar database as mine. by clikcing the invoke report button, a box comes up asking the following informtion.
Server name:
user :
password :
database :
how to solve it...Open the report and do verify database
Thursday, February 16, 2012
A newbie to Reporting Services seeking advice
application, I want to switch over to SQL Server Reporting Services.
My question is whether I can do what I want with Reporting services.
My app is a 2 tier winforms app. The client will query the database through
a VPN. The database is a SQL Server 2005 database. Can my app call reports
located in a directory on the server and display them in a viewer in my app
and then the client either prints to their local machine or saves to file
ex. pdf file? The client does have an IIS server running on the same
machine as the database.
BillIf I understand your question correctly, yes, you can host a server-
based report inside of a client app and also output them to PDF by
using the ReportViewer control.
Start here: http://www.gotreportviewer.com/
On Apr 14, 12:44 am, "BillG" <billgo...@.charter.net> wrote:
> I have been a long time Crystal Reports user but now due to a new
> application, I want to switch over to SQL Server Reporting Services.
> My question is whether I can do what I want with Reporting services.
> My app is a 2 tier winforms app. The client will query the database through
> a VPN. The database is a SQL Server 2005 database. Can my app call reports
> located in a directory on the server and display them in a viewer in my app
> and then the client either prints to their local machine or saves to file
> ex. pdf file? The client does have an IIS server running on the same
> machine as the database.
> Bill
Monday, February 13, 2012
A more consistant Web Report Viewer?
Is there another way of displaying reports online that will show the data exactly as it wil be printed?
A number of things have been causing me problems, such as the fact that the pagination controls do not show the same number of pages that actualy get printed. And some fields in the the report viewer do not line up with their column headers, but on the print outs they do.
We used to use Crystal reports, and would like the report viewer to act in a similar manor to their ActiveX report viewer.
Any help is greatly apprechiated.
Many thanks
Matt
I am kindof shooting from the hip here without looking into it too deeply, but I am pretty sure that you can specify CSS as they apply to viewed reports. In doing so, there should be a "print.css", which can be altered as well. This may not be the solution that you are looking for, but I think that it would merit some looking in to.
Hope this helps a bit,
Nathan
|||Hi Nathan,
Thanks for your comments, but thats not exactly what i was after.
I just had a thought though, there obvously is an activex control that can render the report as this is launched in the print preview.
Does anybody know how to use this renderer as the viewer embeded in a HTML page?
Cheers
Matt
|||Hi Matt,
Print uses the EMF image extension. You can find the details here: http://msdn2.microsoft.com/en-us/library/ms155373.aspx
If you set the PageHeight and PageWidth properties of your report and use the same margins, this will make the web viewer more similar to the view of Print.
|||You can try displaying the EMF yourself, but I would guess that PDF might be more useable since you don't need to actually write an application to display it. For EMF, you are going to have to write something actually display the metafile that we send.|||Hi Guys,
Thanks for your feedback.
Brad: I have played around with the Page propeties, however i could not get them to match the printouts exactly (which in this instance is what i need to be able to do), but thanks for the details on EMF, i'll definatley look into it.
John: I will look at how viable using PDF is in our situation, but i think the EMF file might be the way i have to go.
Does anybody have any info on converting a report into and EMF file?
Thanks again guys
Matt
Saturday, February 11, 2012
A little help IIF
I have to rewrite a few reports from Cognos to Reporting Services. I was
hoping someone could help me with some of it. Does the "IN" work in reporting
services? The error code I get is [BC30455] Argument not specified for
parameter 'TruePart' of 'Public Function IIf(Expression As Boolean, TruePart
As Object, FalsePart As Object) As Object'.
I can not figure out what else it could be besides the IN. Is there something
else I can use?
=IIF( Fields!COST_ELEM_CTGY.Value ="G", "2G&AC",
(IIF( Fields!COST_ELEM_CTGY.Value IN "C", "P", "R", "V", "X"), "3OTHERS"),
(IIF( Parameters!WBSPrompt.Value = "W",
"1WBS")),
(IIF( Fields!COST_ELEM_CTGY.Value = "O" ,
"1OTHER",
"1FUNCTION")))
Thanks in Advanced,
Kerrie
--
Message posted via http://www.sqlmonster.comReporting service uses VB.net so the switch function or the choose
should work. Switch can be set up to return any object, Choose returns
an index. The msdn examples for these functions are:
Function MatchUp (CityName As String) As String
Return Microsoft.VisualBasic.Switch(CityName = "London", "English",
_
CityName = "Rome", "Italian", CityName = "Paris", "French")
End Function
Function GetChoice(Ind As Integer) As String
GetChoice = CStr(Choose(Ind, "Speedy", "United", "Federal"))
End Function
Thursday, February 9, 2012
A generic error occurred in gdi+
reportviewer. But on some machines (like our Terminal Server) we see
the reportviewer on processing and than we recive this error: A generic
error occurred in gdi+.
Any ideas?
thxAdditions: We use VS 2005 and .Net Framework 2.0 and der Version of the
Report dlls is 8.00|||solved ... wrong report path *argh*
thx