Showing posts with label reporting. Show all posts
Showing posts with label reporting. Show all posts

Wednesday, March 28, 2012

Numbers problems in PDF

Dear All,

i am developing an application in arabic languge we had use the reporting service as our report engine we export the report to PDF format for printing or display

i have a problem with the numbers: when export to PDF the numbers not take the localization language i mean it always displayed in arabic number in need to be display in indean numbers

can u hlep me

hope my problem is clear.

Bolos

Hi,
you can check if your problem is resolved with SP2 :
http://support.microsoft.com/?kbid=889640

Friday, March 23, 2012

Number of rows in the Excel sheet exceeded the limit of 65536 rows

Hi,
I got this message from the export to xls in reporting services.
Is there a way to prevent this? Can I set some property on the report to use
a new sheet on a group for example?
Thanks
BartOn Mar 15, 5:37 am, Bart <bart...@.community.nospam> wrote:
> Hi,
> I got this message from the export to xls in reporting services.
> Is there a way to prevent this? Can I set some property on the report to use
> a new sheet on a group for example?
> Thanks
> Bart
There are a couple of ways to handle this. One way would be to select
the properties on the report control you are using (i.e., table, list,
etc) and select 'Insert a page break after this table' (ie). Another
way to handle this is to select 'Page break at end' as part of the
control's grouping. Hope this helps.
Regards,
Enrique Martinez
Sr. SQL Server Developer|||Hi Enrique,
Thanks for your help.
It seems that a pagebreak is working on groups.
Bart
"EMartinez" wrote:
> On Mar 15, 5:37 am, Bart <bart...@.community.nospam> wrote:
> > Hi,
> >
> > I got this message from the export to xls in reporting services.
> > Is there a way to prevent this? Can I set some property on the report to use
> > a new sheet on a group for example?
> >
> > Thanks
> > Bart
> There are a couple of ways to handle this. One way would be to select
> the properties on the report control you are using (i.e., table, list,
> etc) and select 'Insert a page break after this table' (ie). Another
> way to handle this is to select 'Page break at end' as part of the
> control's grouping. Hope this helps.
> Regards,
> Enrique Martinez
> Sr. SQL Server Developer
>|||On Mar 15, 9:18 am, Bart <bart...@.community.nospam> wrote:
> Hi Enrique,
> Thanks for your help.
> It seems that a pagebreak is working on groups.
> Bart
> "EMartinez" wrote:
> > On Mar 15, 5:37 am, Bart <bart...@.community.nospam> wrote:
> > > Hi,
> > > I got this message from the export to xls in reporting services.
> > > Is there a way to prevent this? Can I set some property on the report to use
> > > a new sheet on a group for example?
> > > Thanks
> > > Bart
> > There are a couple of ways to handle this. One way would be to select
> > the properties on the report control you are using (i.e., table, list,
> > etc) and select 'Insert a page break after this table' (ie). Another
> > way to handle this is to select 'Page break at end' as part of the
> > control's grouping. Hope this helps.
> > Regards,
> > Enrique Martinez
> > Sr. SQL Server Developer
You're welcome. Glad it worked out.
Regards,
Enrique Martinez
Sr. SQL Server Developer|||I'm sorry, but forgot 'not' in my previous message.
A pagebreak doesn't work on groups.
Thanks
Bart
"EMartinez" wrote:
> On Mar 15, 9:18 am, Bart <bart...@.community.nospam> wrote:
> > Hi Enrique,
> >
> > Thanks for your help.
> > It seems that a pagebreak is working on groups.
> >
> > Bart
> >
> > "EMartinez" wrote:
> > > On Mar 15, 5:37 am, Bart <bart...@.community.nospam> wrote:
> > > > Hi,
> >
> > > > I got this message from the export to xls in reporting services.
> > > > Is there a way to prevent this? Can I set some property on the report to use
> > > > a new sheet on a group for example?
> >
> > > > Thanks
> > > > Bart
> >
> > > There are a couple of ways to handle this. One way would be to select
> > > the properties on the report control you are using (i.e., table, list,
> > > etc) and select 'Insert a page break after this table' (ie). Another
> > > way to handle this is to select 'Page break at end' as part of the
> > > control's grouping. Hope this helps.
> >
> > > Regards,
> >
> > > Enrique Martinez
> > > Sr. SQL Server Developer
>
> You're welcome. Glad it worked out.
> Regards,
> Enrique Martinez
> Sr. SQL Server Developer
>|||Hello Bart,
Here is the limitation of the Excel render in reporting services:
Excel Rendering Limitations
http://msdn2.microsoft.com/en-us/library/ms156418.aspx
Excel 2007 did extend the limitation and you may follow this article:
http://blogs.msdn.com/excel/archive/2005/09/26/474258.aspx
So my suggestion is that you could try to install the latest services pack
and render to excel 2007.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||Hi ,
How is everything going? Please feel free to let me know if you need any
assistance.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.

Monday, March 19, 2012

number in words

Hy,

I use Reporting Services with Visual Studio and in my report I have to write the numbers of my data base in words. For example : "55" has to be written "fifty five".

I have to do that in two other langages: french and dutch.

But I don't know at all how to do that. I never used reporting service before. Can you help me?

Regards

The requirement you present is not a simple one and certainly is not something that supported out of the box.

Your best option is to create a table with the range of numbers you wish translated and a language code column and get some resource to generate the translations manually.

Unless you want to get into custom coding to parse the number and translate it into words in the desired language on the fly, which although an interesting prospect I would certainly not recommend.

|||

Hello Oolon,

I had the same requirement, but I had in english. I did not create a table insted I created two functions and called one from another. First function has all the table values and the second has all the logic.

http://www.planet-source-code.com/vb/scripts/ShowCodeAsText.asp?txtCodeId=439&lngWId=5

Hope this helps.

|||

This code is perfect

Thank you

Monday, March 12, 2012

Number Format after Exporting to Excel from Reporting Services

I suddenly have a large amount of users asking me why they can't do
sums on Excel 2003 exported Reporting Services reports. The numbers
in the cells are not formatted as numbers nor does it appear like you
can change it within Excel. Some are retypeing number into each
column.
Is this something I can control within Reporting Services or does
something need to be done within Excel after the export.
Any help would be great.
Thanks,
MikeOn Jul 13, 12:52 pm, michael h <mikej...@.gmail.com> wrote:
> I suddenly have a large amount of users asking me why they can't do
> sums on Excel 2003 exported Reporting Services reports. The numbers
> in the cells are not formatted as numbers nor does it appear like you
> can change it within Excel. Some are retypeing number into each
> column.
> Is this something I can control within Reporting Services or does
> something need to be done within Excel after the export.
> Any help would be great.
> Thanks,
> Mike
You might be able to convert the numbers via an expression and that
way it can export and be recognized as an integer/long value. An
expression similar to this might work.
=CInt(Fields!FieldName.Value)
-or-
=CLng(Fields!FieldName.Value)
Hope this helps.
Regards,
Enrique Martinez
Sr. Software Consultant

Friday, March 9, 2012

NullReferenceException: Object Reference not set

Hello,
I have a strange error. When I try to add a table to the reporting
services I sometimes get errors depending on the table. I have one table
that I can view fine, but the other one is giving me a ton of problems. The
problem occurs when I go to add the table. When I select the table that I
want, and I get the error NullReferenceException:Object reference not set.
They are both as/400 files and I can't see any big differences in them. Any
ideas?
Thanks,
BrianWould you like to provide more details?
What exactly are you doing and when this message being shown?
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Brian" <javelin@.amc.com> wrote in message
news:5FC5A491-D69E-47CF-ACD7-47518BDB560F@.microsoft.com...
> Hello,
> I have a strange error. When I try to add a table to the reporting
> services I sometimes get errors depending on the table. I have one table
> that I can view fine, but the other one is giving me a ton of problems.
> The
> problem occurs when I go to add the table. When I select the table that I
> want, and I get the error NullReferenceException:Object reference not set.
> They are both as/400 files and I can't see any big differences in them.
> Any
> ideas?
> Thanks,
> Brian|||I right click and say add table. As soon as add the table I get the error.
"Lev Semenets [MSFT]" wrote:
> Would you like to provide more details?
> What exactly are you doing and when this message being shown?
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Brian" <javelin@.amc.com> wrote in message
> news:5FC5A491-D69E-47CF-ACD7-47518BDB560F@.microsoft.com...
> > Hello,
> > I have a strange error. When I try to add a table to the reporting
> > services I sometimes get errors depending on the table. I have one table
> > that I can view fine, but the other one is giving me a ton of problems.
> > The
> > problem occurs when I go to add the table. When I select the table that I
> > want, and I get the error NullReferenceException:Object reference not set.
> > They are both as/400 files and I can't see any big differences in them.
> > Any
> > ideas?
> >
> > Thanks,
> > Brian
>
>|||AS/400 is not supported by Visual Studio query designer (see
http://support.microsoft.com/default.aspx?scid=kb;en-us;811241 )
Please try using our Generic Query Designer rather than the VS query
designer.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Brian" <javelin@.amc.com> wrote in message
news:AEDBA0E9-9231-453E-9342-1D844A917B22@.microsoft.com...
>I right click and say add table. As soon as add the table I get the error.
> "Lev Semenets [MSFT]" wrote:
>> Would you like to provide more details?
>> What exactly are you doing and when this message being shown?
>> --
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> "Brian" <javelin@.amc.com> wrote in message
>> news:5FC5A491-D69E-47CF-ACD7-47518BDB560F@.microsoft.com...
>> > Hello,
>> > I have a strange error. When I try to add a table to the reporting
>> > services I sometimes get errors depending on the table. I have one
>> > table
>> > that I can view fine, but the other one is giving me a ton of problems.
>> > The
>> > problem occurs when I go to add the table. When I select the table
>> > that I
>> > want, and I get the error NullReferenceException:Object reference not
>> > set.
>> > They are both as/400 files and I can't see any big differences in them.
>> > Any
>> > ideas?
>> >
>> > Thanks,
>> > Brian
>>|||What that means is that while the Visual Studio tool does not explicitly deny you from connecting to
and possibly even using other OLE-DB providers, they have done very little (if any) testing with
those providers and would generally not be willing to take bug fixes for any problems found therein.
In other words, if there are situations where it works, its luck rather than by design.
The GQD was written to help in these scenarios.
--
Thanks.
Donovan R. Smith
Software Test Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
"Brian" <javelin@.amc.com> wrote in message
news:502BF2D9-8401-4C97-A5A0-9F9AE3A97D54@.microsoft.com...
> If you can not use the as/400 how come I can connect to the other as/400
> file?
> "Lev Semenets [MSFT]" wrote:
> > AS/400 is not supported by Visual Studio query designer (see
> > http://support.microsoft.com/default.aspx?scid=kb;en-us;811241 )
> > Please try using our Generic Query Designer rather than the VS query
> > designer.
> >
> > --
> > This posting is provided "AS IS" with no warranties, and confers no rights.
> >
> >
> > "Brian" <javelin@.amc.com> wrote in message
> > news:AEDBA0E9-9231-453E-9342-1D844A917B22@.microsoft.com...
> > >I right click and say add table. As soon as add the table I get the error.
> > >
> > > "Lev Semenets [MSFT]" wrote:
> > >
> > >> Would you like to provide more details?
> > >> What exactly are you doing and when this message being shown?
> > >>
> > >> --
> > >> This posting is provided "AS IS" with no warranties, and confers no
> > >> rights.
> > >>
> > >>
> > >> "Brian" <javelin@.amc.com> wrote in message
> > >> news:5FC5A491-D69E-47CF-ACD7-47518BDB560F@.microsoft.com...
> > >> > Hello,
> > >> > I have a strange error. When I try to add a table to the reporting
> > >> > services I sometimes get errors depending on the table. I have one
> > >> > table
> > >> > that I can view fine, but the other one is giving me a ton of problems.
> > >> > The
> > >> > problem occurs when I go to add the table. When I select the table
> > >> > that I
> > >> > want, and I get the error NullReferenceException:Object reference not
> > >> > set.
> > >> > They are both as/400 files and I can't see any big differences in them.
> > >> > Any
> > >> > ideas?
> > >> >
> > >> > Thanks,
> > >> > Brian
> > >>
> > >>
> > >>
> >
> >
> >|||I went to a msdn event and I was told by the microsoft guy that the reporting
services was made to work on any database, not just sql. It was supposed to
be MS's Crystal Reports. Am I understanding you correctly, are you saying
that this is not true?
Brian
"Donovan R. Smith [MSFT]" wrote:
> What that means is that while the Visual Studio tool does not explicitly deny you from connecting to
> and possibly even using other OLE-DB providers, they have done very little (if any) testing with
> those providers and would generally not be willing to take bug fixes for any problems found therein.
> In other words, if there are situations where it works, its luck rather than by design.
> The GQD was written to help in these scenarios.
> --
> Thanks.
> Donovan R. Smith
> Software Test Lead
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "Brian" <javelin@.amc.com> wrote in message
> news:502BF2D9-8401-4C97-A5A0-9F9AE3A97D54@.microsoft.com...
> > If you can not use the as/400 how come I can connect to the other as/400
> > file?
> >
> > "Lev Semenets [MSFT]" wrote:
> >
> > > AS/400 is not supported by Visual Studio query designer (see
> > > http://support.microsoft.com/default.aspx?scid=kb;en-us;811241 )
> > > Please try using our Generic Query Designer rather than the VS query
> > > designer.
> > >
> > > --
> > > This posting is provided "AS IS" with no warranties, and confers no rights.
> > >
> > >
> > > "Brian" <javelin@.amc.com> wrote in message
> > > news:AEDBA0E9-9231-453E-9342-1D844A917B22@.microsoft.com...
> > > >I right click and say add table. As soon as add the table I get the error.
> > > >
> > > > "Lev Semenets [MSFT]" wrote:
> > > >
> > > >> Would you like to provide more details?
> > > >> What exactly are you doing and when this message being shown?
> > > >>
> > > >> --
> > > >> This posting is provided "AS IS" with no warranties, and confers no
> > > >> rights.
> > > >>
> > > >>
> > > >> "Brian" <javelin@.amc.com> wrote in message
> > > >> news:5FC5A491-D69E-47CF-ACD7-47518BDB560F@.microsoft.com...
> > > >> > Hello,
> > > >> > I have a strange error. When I try to add a table to the reporting
> > > >> > services I sometimes get errors depending on the table. I have one
> > > >> > table
> > > >> > that I can view fine, but the other one is giving me a ton of problems.
> > > >> > The
> > > >> > problem occurs when I go to add the table. When I select the table
> > > >> > that I
> > > >> > want, and I get the error NullReferenceException:Object reference not
> > > >> > set.
> > > >> > They are both as/400 files and I can't see any big differences in them.
> > > >> > Any
> > > >> > ideas?
> > > >> >
> > > >> > Thanks,
> > > >> > Brian
> > > >>
> > > >>
> > > >>
> > >
> > >
> > >
>
>|||Reporting Services certainly does work against AS/400 databases (and Terradata, Oracle, Informix,
MySql, etc...). In this particular case, the Visual Studio Visual Database Tool does not support
visually creating queries against an AS/400. We included this visual query designer since it made
some tasks easier but we also made sure that - in cases where it would not work - we provided an
alternative. That alternative is our Generic Query Designer. It does not provide some of the same
visuals but it does allow you to overcome the other designer's limitations.
Also, keep in mind that this only affects the way in which you design queries. It does not affect
how you design reports based on the results of your queries. Also, the server side of Reporting
Services is extremely flexible is not impacted by this Visual Studio limitations at all.
So what they told you is correct - it will work against any database, not just SQL Server.
--
Thanks.
Donovan R. Smith
Software Test Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
"Brian" <javelin@.amc.com> wrote in message
news:50DCDF13-0C11-4CC2-9026-F42E7FBBDF45@.microsoft.com...
> I went to a msdn event and I was told by the microsoft guy that the reporting
> services was made to work on any database, not just sql. It was supposed to
> be MS's Crystal Reports. Am I understanding you correctly, are you saying
> that this is not true?
> Brian
> "Donovan R. Smith [MSFT]" wrote:
> > What that means is that while the Visual Studio tool does not explicitly deny you from
connecting to
> > and possibly even using other OLE-DB providers, they have done very little (if any) testing with
> > those providers and would generally not be willing to take bug fixes for any problems found
therein.
> > In other words, if there are situations where it works, its luck rather than by design.
> >
> > The GQD was written to help in these scenarios.
> >
> > --
> > Thanks.
> >
> > Donovan R. Smith
> > Software Test Lead
> >
> > This posting is provided "AS IS" with no warranties, and confers no rights.
> >
> > "Brian" <javelin@.amc.com> wrote in message
> > news:502BF2D9-8401-4C97-A5A0-9F9AE3A97D54@.microsoft.com...
> > > If you can not use the as/400 how come I can connect to the other as/400
> > > file?
> > >
> > > "Lev Semenets [MSFT]" wrote:
> > >
> > > > AS/400 is not supported by Visual Studio query designer (see
> > > > http://support.microsoft.com/default.aspx?scid=kb;en-us;811241 )
> > > > Please try using our Generic Query Designer rather than the VS query
> > > > designer.
> > > >
> > > > --
> > > > This posting is provided "AS IS" with no warranties, and confers no rights.
> > > >
> > > >
> > > > "Brian" <javelin@.amc.com> wrote in message
> > > > news:AEDBA0E9-9231-453E-9342-1D844A917B22@.microsoft.com...
> > > > >I right click and say add table. As soon as add the table I get the error.
> > > > >
> > > > > "Lev Semenets [MSFT]" wrote:
> > > > >
> > > > >> Would you like to provide more details?
> > > > >> What exactly are you doing and when this message being shown?
> > > > >>
> > > > >> --
> > > > >> This posting is provided "AS IS" with no warranties, and confers no
> > > > >> rights.
> > > > >>
> > > > >>
> > > > >> "Brian" <javelin@.amc.com> wrote in message
> > > > >> news:5FC5A491-D69E-47CF-ACD7-47518BDB560F@.microsoft.com...
> > > > >> > Hello,
> > > > >> > I have a strange error. When I try to add a table to the reporting
> > > > >> > services I sometimes get errors depending on the table. I have one
> > > > >> > table
> > > > >> > that I can view fine, but the other one is giving me a ton of problems.
> > > > >> > The
> > > > >> > problem occurs when I go to add the table. When I select the table
> > > > >> > that I
> > > > >> > want, and I get the error NullReferenceException:Object reference not
> > > > >> > set.
> > > > >> > They are both as/400 files and I can't see any big differences in them.
> > > > >> > Any
> > > > >> > ideas?
> > > > >> >
> > > > >> > Thanks,
> > > > >> > Brian
> > > > >>
> > > > >>
> > > > >>
> > > >
> > > >
> > > >
> >
> >
> >

Monday, February 20, 2012

NULL default for query-based parameter

I'm using DevStudio 2005 with Reporting Services and SQL Server 2005. I have
a report with two parameters - @.StoreID and @.ParkName.
@.StoreID is a "non-queried" parameter with "Allow null value" checked.
@.ParkName is a "From query" parameter with "Allow null value" checked.
"Null" is checked under Default value for both parameters.
The stored procedure behind the report is setup to interpret "NULL" as "all
values" for both parameters, so you could select all stores and all parks, or
one park or one store, etc.
When I run the report, the @.StoreID parameter fields comes up with a NULL
checkbox next to it; that checkbox is checked by default and the parameter
field itself is blank and grayed out. If I uncheck NULL, I can enter a
specific store ID. This is exactly what I expect.
However, the @.ParkName parameter field comes up with "<Select a value>" as a
default and no NULL checkbox. If I leave the "<Select a value>" and click
View Report, I get an error about specifying a value for Park Name. If I
select a specific value from the drop-down-list, it works correctly.
Since both parameters are configured the same way with respect to NULL
values, I expected them to behave the same way (NULL checkbox checked by
default), but they don't. Is this an issue specifically with query-based
parameters? If so, how do I get the query-based parameter @.ParkName to
default to and accept a NULL input the same way @.StoreID does?Hi Mike,
The most common workaround I've found for the problem you are
encountering is to UNION an 'All' entry into the @.Parkname parameter such as
follows.
SELECT DISTINCT 1 as Sort, ParkName FROM Parks
UNION ALL
SELECT 0, 'All'
Order By Sort
You then also have to configure your dataset WHERE to have an entry that
includes
WHERE Parkaname in (@.ParkName) OR 'All' in (@.ParkName)
Michael C
"Mike Miller" wrote:
> I'm using DevStudio 2005 with Reporting Services and SQL Server 2005. I have
> a report with two parameters - @.StoreID and @.ParkName.
> @.StoreID is a "non-queried" parameter with "Allow null value" checked.
> @.ParkName is a "From query" parameter with "Allow null value" checked.
> "Null" is checked under Default value for both parameters.
> The stored procedure behind the report is setup to interpret "NULL" as "all
> values" for both parameters, so you could select all stores and all parks, or
> one park or one store, etc.
> When I run the report, the @.StoreID parameter fields comes up with a NULL
> checkbox next to it; that checkbox is checked by default and the parameter
> field itself is blank and grayed out. If I uncheck NULL, I can enter a
> specific store ID. This is exactly what I expect.
> However, the @.ParkName parameter field comes up with "<Select a value>" as a
> default and no NULL checkbox. If I leave the "<Select a value>" and click
> View Report, I get an error about specifying a value for Park Name. If I
> select a specific value from the drop-down-list, it works correctly.
> Since both parameters are configured the same way with respect to NULL
> values, I expected them to behave the same way (NULL checkbox checked by
> default), but they don't. Is this an issue specifically with query-based
> parameters? If so, how do I get the query-based parameter @.ParkName to
> default to and accept a NULL input the same way @.StoreID does?|||Michael,
Thanks for the tip. I had considered that previously, but was hoping there
was a simpler solution. It seems strange that Reporting Services treats a
non-queried parameter differently than a queried parameter with respect to
NULL values.
Mike
"Michael C" wrote:
> Hi Mike,
> The most common workaround I've found for the problem you are
> encountering is to UNION an 'All' entry into the @.Parkname parameter such as
> follows.
> SELECT DISTINCT 1 as Sort, ParkName FROM Parks
> UNION ALL
> SELECT 0, 'All'
> Order By Sort
> You then also have to configure your dataset WHERE to have an entry that
> includes
> WHERE Parkaname in (@.ParkName) OR 'All' in (@.ParkName)
> Michael C
> "Mike Miller" wrote:
> > I'm using DevStudio 2005 with Reporting Services and SQL Server 2005. I have
> > a report with two parameters - @.StoreID and @.ParkName.
> >
> > @.StoreID is a "non-queried" parameter with "Allow null value" checked.
> > @.ParkName is a "From query" parameter with "Allow null value" checked.
> > "Null" is checked under Default value for both parameters.
> > The stored procedure behind the report is setup to interpret "NULL" as "all
> > values" for both parameters, so you could select all stores and all parks, or
> > one park or one store, etc.
> >
> > When I run the report, the @.StoreID parameter fields comes up with a NULL
> > checkbox next to it; that checkbox is checked by default and the parameter
> > field itself is blank and grayed out. If I uncheck NULL, I can enter a
> > specific store ID. This is exactly what I expect.
> >
> > However, the @.ParkName parameter field comes up with "<Select a value>" as a
> > default and no NULL checkbox. If I leave the "<Select a value>" and click
> > View Report, I get an error about specifying a value for Park Name. If I
> > select a specific value from the drop-down-list, it works correctly.
> >
> > Since both parameters are configured the same way with respect to NULL
> > values, I expected them to behave the same way (NULL checkbox checked by
> > default), but they don't. Is this an issue specifically with query-based
> > parameters? If so, how do I get the query-based parameter @.ParkName to
> > default to and accept a NULL input the same way @.StoreID does?