Showing posts with label reports. Show all posts
Showing posts with label reports. Show all posts

Thursday, March 29, 2012

Ad-hoc reporting memory consumption

Hi to all, on our project we are facing this problem: our users using report builder are making reports containing several Mb of data (sometimes also 1Gb!). Now it happens that when 3-4 users do a report like that on the server the process w3wp.exe reaches also 10 Gb of memory allocated and then the whole reporting services istance stops working. We want to limit the number of rows that can be extracted from the sql server db using report builder. In the report model reference seems that there is not this kind of option (something like "max rowcount"). Is it possible to set this limit to the user that connects to sql server (something like: whatever is the query this user does, set @.@.rowcount to 10000)? Thanks. Alberto.

Hi Alberto,

We are currently facing your same issue. Did you get some solution to limit the rowcount on reportbuilder models? Thanks in advance for any ideas.

|||

Hi Cato, unluckly it seems that there isn't a good solution. Keep an eye on security filters on report models,this is the only thing that seems to "filter" data.

HTH.

Alberto

Ad-hoc reporting memory consumption

Hi to all, on our project we are facing this problem: our users using report builder are making reports containing several Mb of data (sometimes also 1Gb!). Now it happens that when 3-4 users do a report like that on the server the process w3wp.exe reaches also 10 Gb of memory allocated and then the whole reporting services istance stops working.

We want to limit the number of rows that can be extracted from the sql server db using report builder. In the report model reference seems that there is not this kind of option (something like "max rowcount"). Is it possible to set this limit to the user that connects to sql server (something like: whatever is the query this user does, set @.@.rowcount to 10000)?

Thanks.

Alberto.

Hi Alberto,

We are currently facing your same issue. Did you get some solution to limit the rowcount on reportbuilder models? Thanks in advance for any ideas.

|||

Hi Cato, unluckly it seems that there isn't a good solution. Keep an eye on security filters on report models,this is the only thing that seems to "filter" data.

HTH.

Alberto

Thursday, March 22, 2012

Adding Users

I am trying to set up my report services so that a "power user" for a
specific set of reports can go and add the users that they want to have
access to the reports. However, the only way that i find this works, is if i
also grant the "power user" access to sql server enterprise manager to create
the user in the server and then grant the user select privledges on the
database. Is there a way to accomplish this using integrated security
without having to have each user entered into the server's user table and
granted individual rights?
thanks for any and all help!
BenYes. The way you are setup right now is you are using the user running the
report credentials as the credentials to get the data. What I do is have a
special, readonly user that is used for the credentials for the report. I
run SQL Server in mixed mode so that I do not have to use a domain account.
Then, the user being logged in is just used to allow access to the report.
This would allow you to do as you want. An added benefit is that the system
would be able to take advantage of connection pooling which is not the case
the way you are running now (for a connection to be shared the connection
string, including username, must be exact match).
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Ben" <ben_1_ AT hotmail DOT com> wrote in message
news:69402C6A-87E2-416F-AFFF-741CB771DC93@.microsoft.com...
>I am trying to set up my report services so that a "power user" for a
> specific set of reports can go and add the users that they want to have
> access to the reports. However, the only way that i find this works, is
> if i
> also grant the "power user" access to sql server enterprise manager to
> create
> the user in the server and then grant the user select privledges on the
> database. Is there a way to accomplish this using integrated security
> without having to have each user entered into the server's user table and
> granted individual rights?
> thanks for any and all help!
> Bensql

Adding user control to reports

I'm trying to use my own user control (build with vb.net).
I've added the user control to the toolbox but it's disable.
How can i enable it?If its disabled, its likely you cant use it in reports. Do you want to use
it in the actual report or as a report parameter?
Mark
"Ido" wrote:
> I'm trying to use my own user control (build with vb.net).
> I've added the user control to the toolbox but it's disable.
> How can i enable it?|||I want to use it in the actual report. I'm using the same user control on a
regular windows form without any problems. I've got this problem only with
the sql report service.
"Mark" wrote:
> If its disabled, its likely you cant use it in reports. Do you want to use
> it in the actual report or as a report parameter?
> Mark
> "Ido" wrote:
> > I'm trying to use my own user control (build with vb.net).
> > I've added the user control to the toolbox but it's disable.
> > How can i enable it?|||In 2000 you cannot do this. There is going to be some additional
capabilities for adding in user controls but I am not really up to speed on
it. I doubt that it will be as simple as taking a user control you have that
works in winforms.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Ido" <Ido@.discussions.microsoft.com> wrote in message
news:7E584A7E-BB1F-4FE0-84BC-53090DA90D6A@.microsoft.com...
>I want to use it in the actual report. I'm using the same user control on a
> regular windows form without any problems. I've got this problem only with
> the sql report service.
> "Mark" wrote:
>> If its disabled, its likely you cant use it in reports. Do you want to
>> use
>> it in the actual report or as a report parameter?
>> Mark
>> "Ido" wrote:
>> > I'm trying to use my own user control (build with vb.net).
>> > I've added the user control to the toolbox but it's disable.
>> > How can i enable it?|||Bruce is right. There is a new feature in RS 2005 called CustomReportItem
which allows you integrate custom controls. There is a design time UI
component and a runtime component (which will run inside report designer
preview and on the report server). These controls have to implement certain
interfaces and there are some restrictions on what these custom controls can
generate in the report output. Although this sounds very limiting, you will
get many other RS features for free (e.g. support of your CustomReportItem
control across all rendering output formats, creating and rendering history
snapshots, subscriptions, etc.). The implementation of such custom controls
is however not trivial.
You may want to check out Chris Hays' brand-new sample in the meantime:
http://blogs.msdn.com/chrishays/archive/2005/10/04/CustomReportItemSample.aspx
I will also post some samples and tips around implementing CustomReportItems
in future. There is also a book currently being worked on about how to
implement such CustomReportItem controls to extend the capabilities of SQL
Server 2005 Reporting Services.
-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.
"Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
news:uvWVJltzFHA.2076@.TK2MSFTNGP14.phx.gbl...
> In 2000 you cannot do this. There is going to be some additional
> capabilities for adding in user controls but I am not really up to speed
> on it. I doubt that it will be as simple as taking a user control you have
> that works in winforms.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
>
> "Ido" <Ido@.discussions.microsoft.com> wrote in message
> news:7E584A7E-BB1F-4FE0-84BC-53090DA90D6A@.microsoft.com...
>>I want to use it in the actual report. I'm using the same user control on
>>a
>> regular windows form without any problems. I've got this problem only
>> with
>> the sql report service.
>> "Mark" wrote:
>> If its disabled, its likely you cant use it in reports. Do you want to
>> use
>> it in the actual report or as a report parameter?
>> Mark
>> "Ido" wrote:
>> > I'm trying to use my own user control (build with vb.net).
>> > I've added the user control to the toolbox but it's disable.
>> > How can i enable it?
>sql

Adding two group sums

Hi guys,

I'm very new to Crystal reports and I've scoured the internet looking how to add two 'sums together in a field.

In group header 3 I'm trying to add the following two sums together

Sum ({WMLocnHandlingMediaConf.QtyStor}

and

Sum ({WMLocnHandlingMediaConf.QtyIn}

And I really don't have a clue on how to do, I am a novice on Crystal and this is probably the most complicated thing I've attempted to do.

If anyone can help it would be very much apperciated.

Many Thanks
NickTry inserting and configuring a Running Total Field|||Make sure the the two sums you have already created are physically on the report. (If you do not wanrt to show them just format/suppress).

Create a new formula. When looking for the two fields to sum in the formula, look into report fields. You should see the tweo previously created sums.

Tuesday, March 20, 2012

Adding subreport to report header?

Is it possible? Crystal allowed you to do it but RS doesn't seem to. I have
a number of reports that need to display same data (Org name, date etc.)
on the report header and I thought doing it as a subreport was a good idea.
Any workarounds?
Thanks in advance.Found report templates meet my needs better. Thanks anyway!
> Is it possible? Crystal allowed you to do it but RS doesn't seem to. I
> have a number of reports that need to display same data (Org name,
> date etc.) on the report header and I thought doing it as a subreport
> was a good idea.
> Any workarounds?
> Thanks in advance.
>sql

Adding subfolders to to a project

Can subfolders be added to a project?
i want a few folder like : dashboards, full reports , management
reports etc.
in each folder i would like to store only the relevanr .rdl files and
images used in the reports.
but i dont see an option to add a folder when i right click on the
project name.
the only options i get when right clicking is new report or new
dataset.
i know folders can be added on the report server itself using the
manager but then i have to manually move all the files i wish to use in
the report and the report itself, and the next time i deploy the
reports, the updated files wont automaticaly be put in the folders.
any ideas?
thanks,
Gal.In your report solution, you can have several projects.
In Visual Studio (2005), click on your Solution. CLick on File -> Add -> New
project
Choose Reporting Services project
Give your project a name, and make sure the location of it is in the same
folder as the solution. (You'll get a new folder in the solution folder for
your new project)
Click OK, and you now have a sub-project in your solution.
Save your solution to not loose the connections to the new project. (Click
on the Save All, not just Save)
You now have to create all the data sources in your new project. But they
are easy to copy, just copy from your main solution, and paste to the new
project. You have to paste to the project, not in the data sources folder,
as VS gets confused by this... You might have to check the credentials in
your data sources too, sometimes mine are blanked out when I do this.
Kaisa M. Lindahl Lervik
"Galg" <gal.granov@.gmail.com> wrote in message
news:1151411108.304933.276730@.y41g2000cwy.googlegroups.com...
> Can subfolders be added to a project?
> i want a few folder like : dashboards, full reports , management
> reports etc.
> in each folder i would like to store only the relevanr .rdl files and
> images used in the reports.
> but i dont see an option to add a folder when i right click on the
> project name.
> the only options i get when right clicking is new report or new
> dataset.
> i know folders can be added on the report server itself using the
> manager but then i have to manually move all the files i wish to use in
> the report and the report itself, and the next time i deploy the
> reports, the updated files wont automaticaly be put in the folders.
> any ideas?
> thanks,
> Gal.
>|||thanks,
but cant i use the same data source for all?
i want to make a logical sepration of types of reports... no need to created
the same data source a few times.
"Kaisa M. Lindahl Lervik" wrote:
> In your report solution, you can have several projects.
> In Visual Studio (2005), click on your Solution. CLick on File -> Add -> New
> project
> Choose Reporting Services project
> Give your project a name, and make sure the location of it is in the same
> folder as the solution. (You'll get a new folder in the solution folder for
> your new project)
> Click OK, and you now have a sub-project in your solution.
> Save your solution to not loose the connections to the new project. (Click
> on the Save All, not just Save)
> You now have to create all the data sources in your new project. But they
> are easy to copy, just copy from your main solution, and paste to the new
> project. You have to paste to the project, not in the data sources folder,
> as VS gets confused by this... You might have to check the credentials in
> your data sources too, sometimes mine are blanked out when I do this.
> Kaisa M. Lindahl Lervik
>
> "Galg" <gal.granov@.gmail.com> wrote in message
> news:1151411108.304933.276730@.y41g2000cwy.googlegroups.com...
> > Can subfolders be added to a project?
> > i want a few folder like : dashboards, full reports , management
> > reports etc.
> > in each folder i would like to store only the relevanr .rdl files and
> > images used in the reports.
> > but i dont see an option to add a folder when i right click on the
> > project name.
> > the only options i get when right clicking is new report or new
> > dataset.
> >
> > i know folders can be added on the report server itself using the
> > manager but then i have to manually move all the files i wish to use in
> > the report and the report itself, and the next time i deploy the
> > reports, the updated files wont automaticaly be put in the folders.
> >
> > any ideas?
> >
> > thanks,
> >
> > Gal.
> >
>
>

Monday, March 19, 2012

Adding Security/Confidentiality Message to Reports

We have to add a security/confidentiality message at the bottom of our
reports. Is there a way for reporting services to handle this or do we have
to edit each and every report? (we have hundreds of reports)Unfortunately Reporting Services 2k and 2k5 does not have the master
template functionlaity that ASP.NET 2.0 has.
http://www.ssw.com.au/ssw/Standards/BetterSoftwareSuggestions/ReportingServices.aspx#templates
Raz wrote:
> We have to add a security/confidentiality message at the bottom of our
> reports. Is there a way for reporting services to handle this or do we have
> to edit each and every report? (we have hundreds of reports)

Thursday, March 8, 2012

Adding page numbers by using the template "Report Model Project"

Hi,
I'm trying - without results - to introduce pagenumbers in my reports
which are made by using the template "Report Model Project" of Visual
Studio 2005. I'm using SQL Server 2005 Reporting Services. Does anybody
know if this is possible en if so how to do it?
Ren=E9René,
You'll need to add a text box to the page footer then set the Expression of
the textbox to
=Globals!PageNumber
or this type of thing is more friendly:
="Page " + cstr(Globals!PageNumber) + " of " + cstr(Globals!TotalPages)
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com|||Hello Paul,
Thanks for your solution, but I can not use it. Your solution is OK
when using the template "Report Server Project" and not for the
template "Report Model Project" of Visual Studio 2005 as I'm using. It
looks that for the "Report Model Project" it is impossible to add a
textbox, a header and/or a footer. I think it is impossible to add a
page number. I hope I'm wrong about this.
Ren=E9|||Hi René,
I must be missing something here. The report model projects I've created are
essentially data universes, and contain no reports. However, reports can
subsequently be created which relate to these reports using the Report
Builder - presumably you are referring to these reports? If this is the
case, you can edit the rdl for these reports. It's not nice, but you could
add a pageFooter element at the bottom (before the </Report> element). For a
simple page number it would look something like that below. I'll find out
for you if there is a way this can be done using the BIDS GUI.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
<PageFooter>
<ReportItems>
<Textbox Name="textbox6">
<Left>2.5cm</Left>
<Top>0.25cm</Top>
<rd:DefaultName>textbox6</rd:DefaultName>
<Width>2.53968cm</Width>
<Style>
<PaddingLeft>2pt</PaddingLeft>
<PaddingBottom>2pt</PaddingBottom>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
</Style>
<CanGrow>true</CanGrow>
<Value>=Globals!PageNumber</Value>
</Textbox>
</ReportItems>
<Height>0.88492cm</Height>
<PrintOnLastPage>true</PrintOnLastPage>
<PrintOnFirstPage>true</PrintOnFirstPage>
</PageFooter>|||Hello Paul,
It works! Thanks.
After using Report Builder I've opened a XML editor and I've added and
adjusted your code.
Ren=E9|||Good news. Keep an eye on this thread though because I'll update it when I
find out definitively if there is an easier way to achieve this through the
BIDS GUI.
Regards,
Paul Ibison

Adding New Folders to Report Server Project

I am building a reporting services project, that will eventually contain 100+
reports.
I would like to add subfolders to my Report Server project, to help with
organising them (Finance,Warehouse etc).
I frequently perform this task in standard VS projects (class libraries
etc), but I can't find an option to do this here.
Is this possible?You should be able to add new projects to your main solution, which will
create a new folder for each project.
Open your solution.
Right click on the Solution name in your Solution Explorer. Click on Add ->
New Project
Type a name and choose the location. It could be as a subfolder of your
solution, or as a new folder somewhere else.
I haven't figured out how to use Shared Data Sources from different sub
projects, but you can copy existing datasources failry easily between the
different projects, so that's not too much of a problem. And by doing it
like this, you can have datasources connecting to the same database with
different credentials in the same project structure, which is nice.
Kaisa M. Lindahl Lervik
"programmer_mike" <programmermike@.discussions.microsoft.com> wrote in
message news:E0499886-58C5-4F62-AE60-44A025FD2EDF@.microsoft.com...
>I am building a reporting services project, that will eventually contain
>100+
> reports.
> I would like to add subfolders to my Report Server project, to help with
> organising them (Finance,Warehouse etc).
> I frequently perform this task in standard VS projects (class libraries
> etc), but I can't find an option to do this here.
> Is this possible?|||I had considered this option, but I would prefer to add multiple folder to
just one project.
If I reference a second report server project, will I be able to pick up
referenced reports in the Navigation -> Jump to report option. (Similar to
the way in which you can search for referenced datasets in standard projects)
I am planning on having a lot of links between reports in my project, and
this is one of the reason why I wanted to avoid multiple projects.
Thank yo for your comments
"Kaisa M. Lindahl Lervik" wrote:
> You should be able to add new projects to your main solution, which will
> create a new folder for each project.
> Open your solution.
> Right click on the Solution name in your Solution Explorer. Click on Add ->
> New Project
> Type a name and choose the location. It could be as a subfolder of your
> solution, or as a new folder somewhere else.
> I haven't figured out how to use Shared Data Sources from different sub
> projects, but you can copy existing datasources failry easily between the
> different projects, so that's not too much of a problem. And by doing it
> like this, you can have datasources connecting to the same database with
> different credentials in the same project structure, which is nice.
> Kaisa M. Lindahl Lervik
>
> "programmer_mike" <programmermike@.discussions.microsoft.com> wrote in
> message news:E0499886-58C5-4F62-AE60-44A025FD2EDF@.microsoft.com...
> >I am building a reporting services project, that will eventually contain
> >100+
> > reports.
> > I would like to add subfolders to my Report Server project, to help with
> > organising them (Finance,Warehouse etc).
> > I frequently perform this task in standard VS projects (class libraries
> > etc), but I can't find an option to do this here.
> > Is this possible?
>
>|||You can use either jump to URL or with the jump to report you specify the
folder as well as the report name. However, you can only test the report
when deployed.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"programmer_mike" <programmermike@.discussions.microsoft.com> wrote in
message news:EFB1314B-6747-4A16-9A74-280662C68EC9@.microsoft.com...
>I had considered this option, but I would prefer to add multiple folder to
> just one project.
> If I reference a second report server project, will I be able to pick up
> referenced reports in the Navigation -> Jump to report option. (Similar to
> the way in which you can search for referenced datasets in standard
> projects)
> I am planning on having a lot of links between reports in my project, and
> this is one of the reason why I wanted to avoid multiple projects.
> Thank yo for your comments
> "Kaisa M. Lindahl Lervik" wrote:
>> You should be able to add new projects to your main solution, which will
>> create a new folder for each project.
>> Open your solution.
>> Right click on the Solution name in your Solution Explorer. Click on
>> Add ->
>> New Project
>> Type a name and choose the location. It could be as a subfolder of your
>> solution, or as a new folder somewhere else.
>> I haven't figured out how to use Shared Data Sources from different sub
>> projects, but you can copy existing datasources failry easily between the
>> different projects, so that's not too much of a problem. And by doing it
>> like this, you can have datasources connecting to the same database with
>> different credentials in the same project structure, which is nice.
>> Kaisa M. Lindahl Lervik
>>
>> "programmer_mike" <programmermike@.discussions.microsoft.com> wrote in
>> message news:E0499886-58C5-4F62-AE60-44A025FD2EDF@.microsoft.com...
>> >I am building a reporting services project, that will eventually contain
>> >100+
>> > reports.
>> > I would like to add subfolders to my Report Server project, to help
>> > with
>> > organising them (Finance,Warehouse etc).
>> > I frequently perform this task in standard VS projects (class libraries
>> > etc), but I can't find an option to do this here.
>> > Is this possible?
>>|||By test the report I meant test the link.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"programmer_mike" <programmermike@.discussions.microsoft.com> wrote in
message news:EFB1314B-6747-4A16-9A74-280662C68EC9@.microsoft.com...
>I had considered this option, but I would prefer to add multiple folder to
> just one project.
> If I reference a second report server project, will I be able to pick up
> referenced reports in the Navigation -> Jump to report option. (Similar to
> the way in which you can search for referenced datasets in standard
> projects)
> I am planning on having a lot of links between reports in my project, and
> this is one of the reason why I wanted to avoid multiple projects.
> Thank yo for your comments
> "Kaisa M. Lindahl Lervik" wrote:
>> You should be able to add new projects to your main solution, which will
>> create a new folder for each project.
>> Open your solution.
>> Right click on the Solution name in your Solution Explorer. Click on
>> Add ->
>> New Project
>> Type a name and choose the location. It could be as a subfolder of your
>> solution, or as a new folder somewhere else.
>> I haven't figured out how to use Shared Data Sources from different sub
>> projects, but you can copy existing datasources failry easily between the
>> different projects, so that's not too much of a problem. And by doing it
>> like this, you can have datasources connecting to the same database with
>> different credentials in the same project structure, which is nice.
>> Kaisa M. Lindahl Lervik
>>
>> "programmer_mike" <programmermike@.discussions.microsoft.com> wrote in
>> message news:E0499886-58C5-4F62-AE60-44A025FD2EDF@.microsoft.com...
>> >I am building a reporting services project, that will eventually contain
>> >100+
>> > reports.
>> > I would like to add subfolders to my Report Server project, to help
>> > with
>> > organising them (Finance,Warehouse etc).
>> > I frequently perform this task in standard VS projects (class libraries
>> > etc), but I can't find an option to do this here.
>> > Is this possible?
>>

Tuesday, March 6, 2012

Adding multiple textboxes to PageHeader

I am creating matrix reports programmatically and have come up against a problem where I can only add a single textbox into the pageheader. Writing the report using the report designer software I can add multiple textboxes to the pageheader, however trying to add many of them using the ReportItem object I keep getting a syste.object[] cannot be used in this context. error.

for (int i = 0; i < Items.Count; i++)
{
reportItems.Items = new object[] { CreateTextBox(ItemsIdea.ItemName, ItemsIdea.ItemMessage, ItemsIdea.ItemStyle) };
}

This is the line of code that I am hitting the problem. This works fine, however only inserts the last textbox in the Items Array.

If I change the code to

for (int i = 0; i < Items.Count; i++)

{

reportItems.ItemsIdea = new object[] { CreateTextBox(ItemsIdea.ItemName, ItemsIdea.ItemMessage, ItemsIdea.ItemStyle) };

}

It executes, but fails when trying to render it into XML.

Has anyone managed to get multiple textboxes programatically into the pageheader?In the first approach you are overwriting the Items array with each iteration of the for loop. And in the second approach you are setting each entry in the Items array to a new object array, so you end up with an array of arrays. Instead what you should do is just add the object to the array. Try using the following code.

// create a new array for the text boxes in the header
reportItems.Items = new object[Items.Count];

// iterate though all the Items creating a textbox, which is added to the report items object array
for (int i = 0; i < Items.Count; i++)
{
reportItems.ItemsIdea = CreateTextBox(ItemsIdea.ItemName, ItemsIdea.ItemMessage, ItemsIdea.ItemStyle);
}

Ian

Friday, February 24, 2012

Adding Group Subscriptions

Hi,
Can anyone let me know how to add a group in the domain to reporting
services.I tried adding email address and could easily subscribe to reports.
but when i tried to add a group by spacifying domainname\group name, it did
not work. Can anyone please help!!!
SachinI got a solution for this. All i did was to add a group email in our email
server. Reporting services lets us enter only email address .
"Sachin" wrote:
> Hi,
> Can anyone let me know how to add a group in the domain to reporting
> services.I tried adding email address and could easily subscribe to reports.
> but when i tried to add a group by spacifying domainname\group name, it did
> not work. Can anyone please help!!!
> Sachin

Adding Global Parameters

Is there a way to access global parameters in Reporting Services Reports?..currently all we can usee is the Globals collection...is there a way to add keys to global collection?
can we write something in web.config ( as ReportServer is also a web application) and use the ConfigurationManager class?. The ConfigurationManager class did not work for me when I used it in the expression editor as the editor did not recognise it.

Any help is appreciated (or pointers for that matter).

Thanks.

Hello, have you found any solution yet? I'd like to use shared parameter of whole .net solution or project too. I could imagine to write assembly that expose a constant, but I wish it would exist an easier way. Jirka Nouza

Adding Global Parameters

Is there a way to access global parameters in Reporting Services Reports?..currently all we can usee is the Globals collection...is there a way to add keys to global collection?
can we write something in web.config ( as ReportServer is also a web application) and use the ConfigurationManager class?. The ConfigurationManager class did not work for me when I used it in the expression editor as the editor did not recognise it.

Any help is appreciated (or pointers for that matter).

Thanks.

Hello, have you found any solution yet? I'd like to use shared parameter of whole .net solution or project too. I could imagine to write assembly that expose a constant, but I wish it would exist an easier way. Jirka Nouza

Adding Formula in CRYSTAL REPORT

Hi,

I am using a Crystal reports in order to get the information from the database (ORACLE 9).
The source of data is the script which I added via add command using ORACLE OLE Provider.

I would like to say that now I am trying to implement CR formulas in order to give the
following message :
"NO USERS LOGIN"

I wanted that when there is no user connected to the database Crystal Report gives this message.

In order to that I created the following forumla from the formula Tab, but it didn't give any
message on crystal reoport, when no user login to the database:

Formula 1

if count ({command.USER}) < 0
then "No User Login to Database"

or

Formula 1

if count ({command.USER}) < 1
then "No User Login to Database"

I tried to drag this formula on various section of reports (Detail, Report header), but it
did'nt work.

But when I used greater than sign instead of using less than size, this formula works and
gives the message.

For Example:

Formula 2

if count ({command.USER}) > 0
then "User Login to Database"

Could someone please inform what changes I made in the formula 1 in order to display the message
"No User Login to Database", when there is no user login to database.

I also like to say that the routine which I am using in the Crystal Report gives me information
of several Users who are connecting to the database.

Thanks

DavidI think that's normal, because crystal create a connection to your database to verify the number of user connections. So I think that you must put the following formula in your report:

if count ({command.USER}) < 2
then "No User Login to Database"

To verify what I say just print the field {command.USER} to see his value.|||Hi ariqa,
Use the following formula

if isnull ({command.USER})
then "No User Login to Database"

Madhivanan|||Hi Machuet & Madhi,

Thanks for your cooperation.
Yours solution helped me.

Thanks

Regards

David

Adding folders under the solution

In RS, can one add a folder under the Reports folder? I don't see where I can do this. We work with many different state's and we would like to organize reports by state.

Thanks for the information.

hi,

Yes, you can. You can do it on the Report Server website (eg: http://reporservername/reports) clicking on the new folder. Then you can set up explicit security on it, if you do not want to have the inherited.

Also you can set up in the VS2005 SSRS project the destination folder in the project properties. It used when you deploy reports in a project. If the folder does not exist, it will create it and inherits the permission from the parent.

Regards,

Janos

|||

What I guess I was hoping to be able to do is to right click in the solution and Add a folder, like I can in a web project. We also use Source Safe and would like a similar directory structure there too. We would like to create one solution with the reports, however each report might vary because of different state requirements. From there, we would like a directory structure of Reports/StateName/thisreport.rdl.

Each state then get a copy of their own reports when the program as a whole is delivered to them. They have no need to see other state reports.

We are trying not to create a new Solution for each state because there are reports that are generic and can be created just once.

|||

You can create your folder structure in a solution. Each folder must have its own project below the solution.

eg.> I'd like a folder structure like this:

\

--US

|

-CA

-WA

Then I create an SSRS solution, then I add 3 projects. 1st project property page set the TargetReportFolder to /US, 2nd /US/CA, 3rd /US/WA.... etc.

I hope it helps.

regrads,

Janos

|||I'm also trying to create a folder structure inside the report project itself, to no avail. I think what guyinkalamazoo3 was really going for is the ability to create folders inside the single report project to keep things organized, without having to add a separate report project for each different state, i.e.:

ReportProject
-Reports (Root directory)
--California (Subdirectory)
--Washington (Subdirectory)

It seems odd that you can add folders to organize your project with any other project type, but you can't organize your reports this way. Was this missed in development of SSRS, or is it just another "feature"?

Adding Field to Stored Procedure for Crystal Reports

Hello:

I have a stored procedure for generating our invoices in Crystal
Reports. I have added a new field to the SP, but when I try to add the
field to my Crystal Report invoice, the field isn't available in the
list. However, if I create a new, blank report using the same stored
procedure as the datasource, the field is available. I've seemingly
tried every iteration of "Verify Database" to no avail.

The obvious answer would be to simply drop the sp from my existing
report and then re-add it. However, if you do this, all your fields on
the report are dropped.

Any ideas?

Thanks,
ScottScott (scott@.oppligerbanking.com) writes:
> I have a stored procedure for generating our invoices in Crystal
> Reports. I have added a new field to the SP, but when I try to add the
> field to my Crystal Report invoice, the field isn't available in the
> list. However, if I create a new, blank report using the same stored
> procedure as the datasource, the field is available. I've seemingly
> tried every iteration of "Verify Database" to no avail.
> The obvious answer would be to simply drop the sp from my existing
> report and then re-add it. However, if you do this, all your fields on
> the report are dropped.

You probably get a better answer in a forum devoted to Crystal Reports.

In my shop we use ttx-files as the "database" for our report, so the
report has no connection to the SQL Server database. If one adds a column
to the result set, one has to add it to the TTX file too.

--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp

Sunday, February 19, 2012

Adding date to filename in report subscription

My company sends reports on a daily basis to our customers. Now I want to save all the sent reports on disc with the date in the filename. I have set up a subscription which daily saves the files where I want them. However, I haven't found a way to add the date easily. I already have a parameter when creating the report, it is called Date. Does anybody know if I can use a parameter or something else?

Thank's

Hello,

Sorry, I don't believe there is a way to modify the filename from a subscription, but you can specify a filename from a Data-Driven Subscription. Do a data-driven subscription to a file share, and just include an extra column in your subscription query to have something like this:

select 'Report or file name here ' + convert(varchar, getdate(), 101) as FileName, ...

Then, when you are setting the delivery extension settings, use this field as your File name.

Hope this helps.

Jarret

Thursday, February 16, 2012

Adding Database Fields Dynamically To the Crystal Reports

I have a problem Where in i need to show 24 sizes in one session so i have sliced it to 3 rows 8 columns each , it is not necessary that all the 24 fields should contain data so if there are only 8 sizes i have to show 8 sizes and i have to reduce the size of the section to one row . I am able to suppress the fields in the section but iam unable to reduce the size of the section to one row . so i want to add the fields dynamically to the session instead of drag and drop using ASP.NET(VB) .
Please can any one help me .
Its very very urgent.Could you be using a crosstab? Placing rows and columns i seperate table columns and then printing them in a crosstab.

- Jukka

Monday, February 13, 2012

Adding Column AVGs on Matrix Reports

Hi,
Does anyone know how to add an AVG of a column in a matrix report? Its
obvious how to do a subtotal but I can't figure out how to add an
aggregate AVG for all columns. I also need to have the AVG below the
Column headers not at the bottom of the report as usual (see sample
below).
Column1 Column2 Column3
-- -- -- --
AVG 1.67 1.34 2
Row1 2 3 1
Row2 3 1 1
Row3 0 0 4
Any response is much appreciated.
Thanks,
ClaudeYou could write a simple expression like
=Sum(fields!Detail.Value)/Count(fields!Detail.Value) where detail is the
field pointing to 2,3...etc. instead of using subtotal. Insert a static row
at the top and use this expression. You could use tables instead of matrix (I
find it much cleaner than matrix specially when you dont have column
groupings and can do with row groupings)
"Claude" wrote:
> Hi,
> Does anyone know how to add an AVG of a column in a matrix report? Its
> obvious how to do a subtotal but I can't figure out how to add an
> aggregate AVG for all columns. I also need to have the AVG below the
> Column headers not at the bottom of the report as usual (see sample
> below).
> Column1 Column2 Column3
> -- -- -- --
> AVG 1.67 1.34 2
> Row1 2 3 1
> Row2 3 1 1
> Row3 0 0 4
> Any response is much appreciated.
> Thanks,
> Claude
>