Showing posts with label html. Show all posts
Showing posts with label html. Show all posts

Friday, March 30, 2012

Report Parameter Limitation

Hi all,

I create one report with one report parameter call “Report_Parameter_0”.I access this report though HTML Form.Ex

<FORM action=http://hodb04/reportserver?/report/Report12 method="post">

<INPUT type="hidden" value="Render" name="rs:Command" ID="Hidden1">

<INPUT type="hidden" value="HTML4.0" name="rs:Format" ID="Hidden2">

<INPUT type="hidden" value="true" name="rc:Toolbar" ID="Hidden3">

<INPUT type="hidden" value="true" name="rcStick out tonguearameters" ID="Hidden4">

<INPUT type="hidden" value="request " name="Report_Parameter_0" ID="Hidden5"> <inputtype="Submit>

</FORM>

If I update the Report_Parameter_0 value from “request” to the string with more then 2000 characters, then I will receive the follow error message from the Internet Explorer

“res://C:\WINDOWS\system32\shdoclc.dll/dnserror.htm#http://hodb04/reportserver?/DmReport/Report12”

My question is what it the limitation on the parameter passing thought HTML.What are the max characters I call pass to the report parameter?

Thanks,

tomas

In IE you can have a maximum of 2083 characters, of which no more than 2048 (2KB) can be in the path (the bit after the host). You will also have to watch out for characters that get url encoded, as these don't use up one character position, they use up three (i.e. a space gets url encoded from " " to "%20").

Other browsers have different (and generally much higher) limits.

|||Thanks for your respond. This is not good since all our reports access thought IE, and we require to pass the parameter more than 2083 characters. How can I solve this limitaion? Sould I use Web Service?|||

A web service could work, as those limitations are for IE, not IIS. Alternatively, you could redesign the HTML form or the report - 2KB of parameters is a lot!

|||Thanks, what do you means to redesign the HTML form. Is there a way to remove the 2083 characters limitation. The reason is we need to pass the SQL query to the report parameter to generate the report. Some of the SQL queries have more than 2083 characters.|||

Could you pass the SQL query to a field in a table in the database before you run the report, and use an identifier to retrieve the query afterwards?

Here is another posting that may help.

http://openacs.org/forums/message-view?message_id=110868

cheers,

Andrew

|||

TomasLeung wrote:

Thanks, what do you means to redesign the HTML form. Is there a way to remove the 2083 characters limitation.

There is no way to remove the limitation - it is a limitation with IE. Other browsers have much larger limits. Other technologies don't have those limits. But as i said before, 2KB of query string parameters is a lot.

TomasLeung wrote:

The reason is we need to pass the SQL query to the report parameter to generate the report. Some of the SQL queries have more than 2083 characters.

Maybe i am missing something here, but i find it incredible that you are passing SQL in this way - it is a big security hole and you are asking for trouble. What happens when someone changes their query string to read "delete from products"? I would change the design so that you are only passing *parameters* to the report, which are then passed to a stored procedure to get the data.

|||thanks for your advise, actually the query we passing to the parameter is the MDX query. Futhermore, the MDX query is create by another set of controls for example time and product control. So we know what kind of MDX we passing in. But the MDX query can be exceed 2083 characters.|||

There is no reason why you cannot use another browser to view the HTML form that puts together the MDX, this will get around the 2083 character limitation (did you eliminate unneccessary characters like whitespace?). But i have no idea how the report will render in that browser (i have never tried using a non IE browser to access a report - why don't you give it a try?).

Another option would be to use something like an ASP.Net page, and using either Ajax or postbacks you could build up the query string on the server, then do a call from the server to RS to generate the report, then redirect the client to the generated report.

These are just some ideas i'm throwing around - they may or may not work. Like i said back at the start, the only real way to fix your problem is to redesign the process you are using (unless the change of browser works).

Monday, March 26, 2012

Report out an html string

Is it possible to report out an html string into the rich format?
--> I use an html control (RichTextBox 2.5) that allows the user to create
the main body of a quote in a wysiwyg environment, and that formatting is
successfully saved as an html string to the SQL db and successfully displayed
when opening back up in the control.
--> Will Reporting Services allow me to take that html string and display in
the main body of a report, with the formatting applied (i.e. bold, bullets,
etc.)?
Any help would be greatly appreciated, from saving as a certain datatype in
SQL to rendering the code in the Reporting Services.
Many thanks,
AndyNo. This would most likely would be a security hole if reporting services
allowed that.
However, you could build your own ASP page around reporting services that
might give you a little of the functionality you want.
--
| Thread-Topic: Report out an html string
| thread-index: AcWie3YqffCUH69lRbybl0xkS1lurw==| X-WBNR-Posting-Host: 69.160.170.174
| From: =?Utf-8?B?cGFwYXJoaW5v?= <paparhino@.discussions.microsoft.com>
| Subject: Report out an html string
| Date: Tue, 16 Aug 2005 08:59:19 -0700
| Lines: 16
| Message-ID: <035749C9-7F6C-49E4-BFCD-2DA040AC5CAE@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.sqlserver.reportingsvcs
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.reportingsvcs:50470
| X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
|
| Is it possible to report out an html string into the rich format?
|
| --> I use an html control (RichTextBox 2.5) that allows the user to
create
| the main body of a quote in a wysiwyg environment, and that formatting is
| successfully saved as an html string to the SQL db and successfully
displayed
| when opening back up in the control.
|
| --> Will Reporting Services allow me to take that html string and display
in
| the main body of a report, with the formatting applied (i.e. bold,
bullets,
| etc.)?
|
| Any help would be greatly appreciated, from saving as a certain datatype
in
| SQL to rendering the code in the Reporting Services.
|
| Many thanks,
| Andy
|

Wednesday, March 7, 2012

Report layout:- Inconsistencies between page height and HTML Rendered

I'm having problems with what is displayed in the browser being different to what is defined in the RDL and what is exported to PDF.
I have set height to 21cm and width to 29.7 with 0cm margins. There is one table in the report.
When I export the report to PDF its fine, all pages are 21x29.7cm, landscape.
However, when I view the report in the report manager (in a browser) the pages are much longer than they should be... nearly twice as long (as if to make the report portrait again?)
Has anybody had this problem with lanscape reports? Any ideas on how to resolve this?
I've made lots of different landscape reports and get the problem every time. I find it hard to believe that no one else is having this issue...
ThanksI'm having this problem, too, but since the reports export to PDF no problem, i've considered it a low priority. I'm not even convinced it's a bug, as such, due to the nature of the web and the fact that web-delivered information generally runs on pages a great deal longer than standard portrait-sized pages. That is, I've chosen to consider the page-length property to be a PDF-specific property, and not even applicable to ASP-delivered reports. It doesn't bother me to have users browsing the reports online in this format as long as they can ultimately export them to PDF if they wish.

What does bother me is the seeming randomness of the length of the ASP-delivered report pages. Some of the pages seem double-lengthed, others triple or more. What gives?

|||I know what you, however, its my users that are complaining about it!
If there was some way of being able to "lock" the table headings it wouldnt be a problem - is there any way this can be done? It is one of the most requested features of my users.
Any help is much apprerciated.|||

In SQL Server 2005, you can 'lock' the headers for a table or a matrix.

If you right click the border of the table in the Layout pane of report designer, on the General tab in the Table Properties dialog, there is a check box called "Header should remain visible while scrolling". If you check that, in HTML the table header will always be shown.

-Lukasz


This posting is provided "AS IS" with no warranties, and confers no rights.

|||I had the same problem and solved it, so thought i would share this with anyone who comes across it. I don't know why it exactly occurs but if you change the Interactive page size to be a bit larger then the html is rendered as the pdf and the pdf is unaltered. Interactive page is is reached by clicking on the yellow right hand side of the report off the actual report and then in the properties pane.|||

my report is displayed as one long page when viewed in the browser, while it is displaying correctly in several pages when exported to PDF. Can you please helpe me!!

Regards

Dwarka (hdwarka@.yahoo.com)

Report layout:- Inconsistencies between page height and HTML Rendered

I'm having problems with what is displayed in the browser being different to what is defined in the RDL and what is exported to PDF.
I have set height to 21cm and width to 29.7 with 0cm margins. There is one table in the report.
When I export the report to PDF its fine, all pages are 21x29.7cm, landscape.
However, when I view the report in the report manager (in a browser) the pages are much longer than they should be... nearly twice as long (as if to make the report portrait again?)
Has anybody had this problem with lanscape reports? Any ideas on how to resolve this?
I've made lots of different landscape reports and get the problem every time. I find it hard to believe that no one else is having this issue...
Thanks
I'm having this problem, too, but since the reports export to PDF no problem, i've considered it a low priority. I'm not even convinced it's a bug, as such, due to the nature of the web and the fact that web-delivered information generally runs on pages a great deal longer than standard portrait-sized pages. That is, I've chosen to consider the page-length property to be a PDF-specific property, and not even applicable to ASP-delivered reports. It doesn't bother me to have users browsing the reports online in this format as long as they can ultimately export them to PDF if they wish.

What does bother me is the seeming randomness of the length of the ASP-delivered report pages. Some of the pages seem double-lengthed, others triple or more. What gives?|||I know what you, however, its my users that are complaining about it!
If there was some way of being able to "lock" the table headings it wouldnt be a problem - is there any way this can be done? It is one of the most requested features of my users.
Any help is much apprerciated.
|||

In SQL Server 2005, you can 'lock' the headers for a table or a matrix.

If you right click the border of the table in the Layout pane of report designer, on the General tab in the Table Properties dialog, there is a check box called "Header should remain visible while scrolling". If you check that, in HTML the table header will always be shown.

-Lukasz


This posting is provided "AS IS" with no warranties, and confers no rights.

|||I had the same problem and solved it, so thought i would share this with anyone who comes across it. I don't know why it exactly occurs but if you change the Interactive page size to be a bit larger then the html is rendered as the pdf and the pdf is unaltered. Interactive page is is reached by clicking on the yellow right hand side of the report off the actual report and then in the properties pane.|||

my report is displayed as one long page when viewed in the browser, while it is displaying correctly in several pages when exported to PDF. Can you please helpe me!!

Regards

Dwarka (hdwarka@.yahoo.com)

Report layout:- Inconsistencies between page height and HTML Rendered

I'm having problems with what is displayed in the browser being different to what is defined in the RDL and what is exported to PDF.
I have set height to 21cm and width to 29.7 with 0cm margins. There is one table in the report.
When I export the report to PDF its fine, all pages are 21x29.7cm, landscape.
However, when I view the report in the report manager (in a browser) the pages are much longer than they should be... nearly twice as long (as if to make the report portrait again?)
Has anybody had this problem with lanscape reports? Any ideas on how to resolve this?
I've made lots of different landscape reports and get the problem every time. I find it hard to believe that no one else is having this issue...
Thanks
I'm having this problem, too, but since the reports export to PDF no problem, i've considered it a low priority. I'm not even convinced it's a bug, as such, due to the nature of the web and the fact that web-delivered information generally runs on pages a great deal longer than standard portrait-sized pages. That is, I've chosen to consider the page-length property to be a PDF-specific property, and not even applicable to ASP-delivered reports. It doesn't bother me to have users browsing the reports online in this format as long as they can ultimately export them to PDF if they wish.

What does bother me is the seeming randomness of the length of the ASP-delivered report pages. Some of the pages seem double-lengthed, others triple or more. What gives?|||I know what you, however, its my users that are complaining about it!
If there was some way of being able to "lock" the table headings it wouldnt be a problem - is there any way this can be done? It is one of the most requested features of my users.
Any help is much apprerciated.
|||

In SQL Server 2005, you can 'lock' the headers for a table or a matrix.

If you right click the border of the table in the Layout pane of report designer, on the General tab in the Table Properties dialog, there is a check box called "Header should remain visible while scrolling". If you check that, in HTML the table header will always be shown.

-Lukasz


This posting is provided "AS IS" with no warranties, and confers no rights.

|||I had the same problem and solved it, so thought i would share this with anyone who comes across it. I don't know why it exactly occurs but if you change the Interactive page size to be a bit larger then the html is rendered as the pdf and the pdf is unaltered. Interactive page is is reached by clicking on the yellow right hand side of the report off the actual report and then in the properties pane.|||

my report is displayed as one long page when viewed in the browser, while it is displaying correctly in several pages when exported to PDF. Can you please helpe me!!

Regards

Dwarka (hdwarka@.yahoo.com)

Report layout:- Inconsistencies between page height and HTML Rendered

I'm having problems with what is displayed in the browser being different to what is defined in the RDL and what is exported to PDF.
I have set height to 21cm and width to 29.7 with 0cm margins. There is one table in the report.
When I export the report to PDF its fine, all pages are 21x29.7cm, landscape.
However, when I view the report in the report manager (in a browser) the pages are much longer than they should be... nearly twice as long (as if to make the report portrait again?)
Has anybody had this problem with lanscape reports? Any ideas on how to resolve this?
I've made lots of different landscape reports and get the problem every time. I find it hard to believe that no one else is having this issue...
ThanksI'm having this problem, too, but since the reports export to PDF no problem, i've considered it a low priority. I'm not even convinced it's a bug, as such, due to the nature of the web and the fact that web-delivered information generally runs on pages a great deal longer than standard portrait-sized pages. That is, I've chosen to consider the page-length property to be a PDF-specific property, and not even applicable to ASP-delivered reports. It doesn't bother me to have users browsing the reports online in this format as long as they can ultimately export them to PDF if they wish.

What does bother me is the seeming randomness of the length of the ASP-delivered report pages. Some of the pages seem double-lengthed, others triple or more. What gives?

|||I know what you, however, its my users that are complaining about it!
If there was some way of being able to "lock" the table headings it wouldnt be a problem - is there any way this can be done? It is one of the most requested features of my users.
Any help is much apprerciated.|||

In SQL Server 2005, you can 'lock' the headers for a table or a matrix.

If you right click the border of the table in the Layout pane of report designer, on the General tab in the Table Properties dialog, there is a check box called "Header should remain visible while scrolling". If you check that, in HTML the table header will always be shown.

-Lukasz


This posting is provided "AS IS" with no warranties, and confers no rights.

|||I had the same problem and solved it, so thought i would share this with anyone who comes across it. I don't know why it exactly occurs but if you change the Interactive page size to be a bit larger then the html is rendered as the pdf and the pdf is unaltered. Interactive page is is reached by clicking on the yellow right hand side of the report off the actual report and then in the properties pane.|||

my report is displayed as one long page when viewed in the browser, while it is displaying correctly in several pages when exported to PDF. Can you please helpe me!!

Regards

Dwarka (hdwarka@.yahoo.com)

Report Layout depending on Rendering Format

Can I vary the layout (visibility) depending on the rendering format?
Example: If 'PDF' add a title page, if 'HTML' no title page.
ThanksIs there anybody who could help me on that issue?
"Niklas" wrote:
> Can I vary the layout (visibility) depending on the rendering format?
> Example: If 'PDF' add a title page, if 'HTML' no title page.
> Thanks|||It is not possible to have a title page in one output format, but not in
other output formats.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Niklas" <Niklas@.discussions.microsoft.com> wrote in message
news:BFB7935D-892E-4A66-BBBF-1F39B21C8608@.microsoft.com...
> Is there anybody who could help me on that issue?
> "Niklas" wrote:
> > Can I vary the layout (visibility) depending on the rendering format?
> >
> > Example: If 'PDF' add a title page, if 'HTML' no title page.
> >
> > Thanks

Saturday, February 25, 2012

Report Hyperlink Opening New Window

Hi, I am trying to get a link out of a report to open another web browser
with the HTML
rs:target=_blank as part of the string parameter that is passed in...but it
still opens the link in the same window.
?How does one open a link out of a report so that it will open a new window?
THANKS!!!There is no rs:target parameter. I suppose you mean rc:LinkTarget=_blank
See also:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/RSPROG/htm/rsp_prog_soapapi_dev_3i49.asp
-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.
"G. Ray Giacalone" <rgiacalone@.virtual.com> wrote in message
news:O9F1lJRxFHA.3720@.TK2MSFTNGP14.phx.gbl...
> Hi, I am trying to get a link out of a report to open another web browser
> with the HTML
> rs:target=_blank as part of the string parameter that is passed in...but
> it still opens the link in the same window.
> ?How does one open a link out of a report so that it will open a new
> window?
> THANKS!!!
>|||ok, so I tried this and it didn't work...or maybe I didn't understand it...
I'm in a text box in a table under
properties>>advanced>>navigation>>Jump to URL
and I enter
="http://kingofthegreens.com&rc:LinkTarget=_blank"
results in it still opening in the same window'
"Robert Bruckner [MSFT]" wrote:
> There is no rs:target parameter. I suppose you mean rc:LinkTarget=_blank
> See also:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/RSPROG/htm/rsp_prog_soapapi_dev_3i49.asp
> -- Robert
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "G. Ray Giacalone" <rgiacalone@.virtual.com> wrote in message
> news:O9F1lJRxFHA.3720@.TK2MSFTNGP14.phx.gbl...
> > Hi, I am trying to get a link out of a report to open another web browser
> > with the HTML
> > rs:target=_blank as part of the string parameter that is passed in...but
> > it still opens the link in the same window.
> >
> > ?How does one open a link out of a report so that it will open a new
> > window?
> >
> > THANKS!!!
> >
>
>|||I am having a similar issue, I can't find the syntax for adding
rc:LinkTarget. I am trying to add a url with one query string parameter and
open in a new window.
Thanks!
"Ben Sullins" wrote:
> ok, so I tried this and it didn't work...or maybe I didn't understand it...
> I'm in a text box in a table under
> properties>>advanced>>navigation>>Jump to URL
> and I enter
> ="http://kingofthegreens.com&rc:LinkTarget=_blank"
> results in it still opening in the same window'
>
> "Robert Bruckner [MSFT]" wrote:
> > There is no rs:target parameter. I suppose you mean rc:LinkTarget=_blank
> > See also:
> > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/RSPROG/htm/rsp_prog_soapapi_dev_3i49.asp
> >
> > -- Robert
> > This posting is provided "AS IS" with no warranties, and confers no rights.
> >
> > "G. Ray Giacalone" <rgiacalone@.virtual.com> wrote in message
> > news:O9F1lJRxFHA.3720@.TK2MSFTNGP14.phx.gbl...
> > > Hi, I am trying to get a link out of a report to open another web browser
> > > with the HTML
> > > rs:target=_blank as part of the string parameter that is passed in...but
> > > it still opens the link in the same window.
> > >
> > > ?How does one open a link out of a report so that it will open a new
> > > window?
> > >
> > > THANKS!!!
> > >
> >
> >
> >|||Here is a response of mine about exporting to CSV that covers your
situation. Note that you need to have SP1 or SP2 installed to be able to use
this:
>>>>>>
Depending on how you design your reports you can do the following to export
to Excel. Or, what I do sometimes is make a copy of the report and clean it
up for data export and then hide it in list view. If you export from Report
Manager it puts CSV data in unicode which Excel puts all in one column. If
you export in ASCII then Excel does just as you want. To prevent a problem
with cells (Excel will object to sorting the data) you need to remove any
textboxes you have (for instance with a title, showing the parameters run
etc) and instead add additional header rows, merge the cells and put your
text in there instead. I add a link at the top of the report that says
Export Data. With RS 2005 you will be able to configure it to use ASCII
instead of Unicode.
Here is an example of a Jump to URL link I use. This causes Excel to come up
with the data in a separate window:
="javascript:void(window.open('" & Globals!ReportServerUrl &
"?/SomeFolder/SomeReport&ParamName=" & Parameters!ParamName.Value &
"&rs:Format=CSV&rc:Encoding=ASCII','_blank'))"
If you don't want to have it appear in a new window then do this in jump to
URL:
=Globals!ReportServerUrl & "?/SomeFolder/SomeReport&ParamName=" &
Parameters!ParamName.Value & "&rs:Format=CSV&rc:Encoding=ASCII"
Very nice and very fast.
>>>>>>>>
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Peter Rogers" <Peter Rogers@.discussions.microsoft.com> wrote in message
news:F4C1AC98-3B0D-443D-B18A-0E7896435958@.microsoft.com...
>I am having a similar issue, I can't find the syntax for adding
> rc:LinkTarget. I am trying to add a url with one query string parameter
> and
> open in a new window.
> Thanks!
> "Ben Sullins" wrote:
>> ok, so I tried this and it didn't work...or maybe I didn't understand
>> it...
>> I'm in a text box in a table under
>> properties>>advanced>>navigation>>Jump to URL
>> and I enter
>> ="http://kingofthegreens.com&rc:LinkTarget=_blank"
>> results in it still opening in the same window'
>>
>> "Robert Bruckner [MSFT]" wrote:
>> > There is no rs:target parameter. I suppose you mean
>> > rc:LinkTarget=_blank
>> > See also:
>> > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/RSPROG/htm/rsp_prog_soapapi_dev_3i49.asp
>> >
>> > -- Robert
>> > This posting is provided "AS IS" with no warranties, and confers no
>> > rights.
>> >
>> > "G. Ray Giacalone" <rgiacalone@.virtual.com> wrote in message
>> > news:O9F1lJRxFHA.3720@.TK2MSFTNGP14.phx.gbl...
>> > > Hi, I am trying to get a link out of a report to open another web
>> > > browser
>> > > with the HTML
>> > > rs:target=_blank as part of the string parameter that is passed
>> > > in...but
>> > > it still opens the link in the same window.
>> > >
>> > > ?How does one open a link out of a report so that it will open a new
>> > > window?
>> > >
>> > > THANKS!!!
>> > >
>> >
>> >
>> >