Quantcast
Channel: SQL Server Reporting Services
Viewing all 1418 articles
Browse latest View live

No RTL Support for RDLC Export to PDF on VS 2012

$
0
0

Using VS 2012 I generate a RDLC for RTL language. On the ReportViewer it's displays in correct

right-to-left layout but when exporting to PDF the layout changes to left-to-right.

 

In version 2005 of VS the solution to keep RTL layout when exporting was to place all the report objects in a List object and set the list Direction property to RTL.

Unfortunately in VS 2012 the List object has been changed and the Direction property

is missing. There is a new LayoutDirection property but setting its value to RTL does not affect export output problem.


Reserved.ReportViewerWebControl.axd Missing URL parameter: Name

$
0
0

I keep getting this exception intermittently, it looks like a search engine is hitting my page even though I have a robots.txt file.  What is weird is look at the "Event" from Management Console (below).  The"Request URL" has "&" in the URL.  If you copy and paste that request URL you get the same exception (my site hides the exception of course) If you copy and paste the URL and replace "&" with just "&" then there is no exception and it returns a javascript file.  When I visit the reports page myself, everything works properly.  Like I said I am picking this up in my error logs and it throws quite a few exceptions all right in a row (like  5 of the same exceptions at the same time down to the second)

Has anyone encountered this? I am using this in my web.config:

<httpHandlers>
      <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
    </httpHandlers>


Event Type:    Warning
Event Source:    ASP.NET 2.0.50727.0
Event Category:    Web Event
Event ID:    1309
Date:        6/4/2007
Time:        4:21:36 PM
User:        N/A
Computer:    SV1803
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 6/4/2007 4:21:36 PM
Event time (UTC): 6/4/2007 11:21:36 PM
Event ID: 451314926608461980cfb5a89a038a94
Event sequence: 10588
Event occurrence: 4
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1136884830/Root-1-128254433988287500
    Trust level: Full
    Application Virtual Path: /
    Application Path: C:\Inetpub\wwwroot\alliance\
    Machine name: SV1803
 
Process information:
    Process ID: 9316
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception information:
    Exception type: ArgumentException
    Exception message: Missing URL parameter: Name
 
Request information:
    Request URL: http://alliance.nmrdesign.com/Reserved.ReportViewerWebControl.axd?OpType=Resource&amp;Version=8.0.50727.42&amp;Name=Scripts.ReportViewer.js
    Request path: /Reserved.ReportViewerWebControl.axd
    User host address: 69.19.14.15
    User: 
    Is authenticated: False
    Authentication Type: 
    Thread account name: NT AUTHORITY\NETWORK SERVICE
 
Thread information:
    Thread ID: 1
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: True
    Stack trace:    at Microsoft.Reporting.WebForms.EmbeddedResourceOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)
   at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Not associated with a trusted SQL Server connection.

$
0
0

I configured My website on IIS but when i browse it ,it display an error -- 

Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'user'. Reason: Not associated with a trusted SQL Server connection.

Source Error:

Stack Trace:

[SqlException (0x80131904): Login failed for user 'user'. Reason: Not associated with a trusted SQL Server connection.]
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4849015
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2394
   System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +35
   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +144
   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +342
   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +185
   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +433
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.SqlClient.SqlConnection.Open() +122
   System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +31
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +112
   System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +162
   System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +115
   Attendance.Page_Load(Object sender, EventArgs e) in d:\shukla\Attendance\Attendance\Attendance.aspx.cs:24
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

Problem with wrap text in a column text box

$
0
0

Hi,

I am having a table in rdlc that displays the data from a dataset. My problem is the value of one of the fields is long contineous string because of which my report is getting expanded horizontally. i want to wrap the text in this field so that it occupies fixed width of column & gets wrapped.  I cant manipulate the text as i have to export the report to PDF.

How to display conical charts in asp.net from ssrs report.

$
0
0

Hello All,

i need some help.how to create a conical chart from ssrs reports.kindly provide some links.

Report viewer width & background issues

$
0
0

I'm new to reporting services and having trouble getting a report to render correctly on my ASPX page. I have applied following properties on MS Report viewer 10 with asp.net 4.0
 

AsyncRendering="true" SizeToReportContent="true" Width="100%"

my report has taken background color of page instead of taking white color, width is also not applied correctly..
 
Any suggestions appreciated!!

report with my own types

$
0
0

HI, i am developing an application using ASP.NET MVC4 .

i want to develop a report (RDLC) using my own classes or objects rather dataset or database approaches.

this is not related to SQL Server nor mysql. i want to use my own types as a datasource.

kindly guide. thanks

Report Content Overlapping

$
0
0

I'm new to reporting services and having trouble getting a report to render correctly on my ASPX page.I'm using MS Report viewer 10 using with asp.net 4.0

other than IE, in all browsers content is overlapping

Any suggestions appreciated!!


Print RDLC report without showing Reportviewer...

Save Multiple Reports to PDF

$
0
0

Hello,

I have a web based report that uses theReportViewer.LocalReport.Render to save a PDF file to the server for a visitor to download. I am using an ID number to identify the information that will be in the report.  I need to make multiple reports, one each, for a list ID numbers.  I would like to be able to supply an array of ID numbers and have a new/different PDF file saved to the server for each ID in the array.  My guess is that I need to somehow refresh the report and cause it to re-generate for each number in my array but so far, I have been unable to do this.   Any help would be greatly appreciated. 

Thanks,

MxW

How to create rich report in excel/pdf that will show data and chart bars

$
0
0

I am not good in reporting. We have our data in Sql Server and some basic report in crystal report.

Now We want to move to advance reporting in which want to create dynamic report with charting/bars and other visual thing and able to save that in different formats.

I want to know which tool is best suitable for that currently we have a winform application with crystal reports that are too slow currently it taking more that 20 second to create simple reports.

How to Publish an SSRS Report

$
0
0

Hello everybody,

I hope somone can help me publish my report.  Basicaly I don't know what values to put in the publish report screen in Visual Studio 2012 Express screen which I show in the image below.   The webhosting company supplied me with the following values but I don't know which ones to use and which one goes where.  The way I do it doesn't work.  What name do I need to use for the virtual directory in which I publish the report?  If someone can spell it out for me step by step from programmer to dummy I'd really appreciate it.

Report Server Manager URL:http://localhost/ReportServer_SQL_Service/Pages/Folder.aspx?ItemPath=%2fgoodbyte (locally)

Report Server Manager URL: http://ivy.arvixe.com/ReportServer_SQL_Service/Pages/Folder.aspx?ItemPath=%2fgoodbyte (externally)

Report Server URL: http://localhost/ReportServer_SQL (locally)

Report Server URL: http://ivy.arvixe.com/ReportServer_SQL (externally)

Report Server Path: goodbyte

MS report viewer 2008 does not display the data for the time column

$
0
0

Hi Everyone,

I am using the MS report viewer 2008 for my report.  Everything is working fine, except the Time Column.
It is supposed to display the time in this format hh:mm:ss AM or hh:mm:ss PM.  However, it does not display anything in the Time field; it's just blank.  I am using time format code T.

I also have the time in hh:mm:ss AM format in my data table.

Any ideas of what is causing the problem here?  Would someone please give me some advice.

Any advice is greatly appreciated!

Thanks,

Report Viewer Web Control Doest Not Wrap Long Continuous Text that is without space

$
0
0

Hi,

In the table in my SSRS report there is a field that can contain very long strings. These strings do not contain any spaces.
when i preview the report in Visual Studio, it works fine in wrapping the text by expanding it vertically. However, when the report are rendered in the report viewer in web browser, the wrapping of text doesnt work correctly for a long continuos string without a spacing (e.g. imaveryveryverylonglonglonglongstringwithoutanyspacing), it will expand the report horizontally untill it fits the entire string, thus destroying the preview of the report in report viewer. Is there any way to solve this issue?

In Web Browser

PreView In Visual Studio

PDF export question - Looking for PDF merger software

$
0
0

As we all know, PDF export from SSRS can sometimes be more art than science.  

I'm in a peculiar situation and I what I could use is a PDF merger tool that could be incorporated into a Dot Net 4.0 web application to merge multiple PDF files generated by the ReportViewer control.

Does such a tool exist?


Export to word gives error in ssrs report( 'Index was outside the bounds of the array.')

$
0
0

I have several reports that reference an external image that is a jpeg file stored in a folder on the DataBase server. I can view the reports fine but when I attempt to export the report to Word I get the error 'Index was outside the bounds of the array.'   This happen for particular image file. when i remove the image file it working fine. I don't know exactly what causing this error happening. Anyone guide me to solve this issue ASAP.

Error trying to leave asp page with report viewer

$
0
0

I have FINALLY been able to open my remote SSRS reports from an asp page (ReportViewer.aspx)  using the ReportViewer control in VS2010.

But now when I click my Return button on that page, it seems to still be trying to open the report viewer.

The code on the Return button is simply this:

            Server.Transfer("~\UserPages\Lab\EditBlendMakeup.aspx")

And yet when I click the button, I get an error saying it can't find resource the resource - Requested URL:  "/ReportViewer.aspx". Why oh why is it still looking for the reportviewer page when I am clearly trying to leave that page and go to"~\UserPages\Lab\EditBlendMakeup.aspx" (which definitely exits)????

I have put a breakpoint in my Return button code. This error is being thrown even before it hits that code.

Output of Excel file using Dynamic Reporting

$
0
0

I'm using below code to render a simple report to Excel or PDF, it works fine in PDF, however in Excel I get an error if dtTable has more than 64K rows. I'm using ReportDefinition which Microsoft has published to allow dynamically creation of rdlc from DataTable, available from here http://www.gotreportviewer.com/

Anybody know how to setup the Report Generator to split the spreadsheet out into a new tab every 64K row?

 

var localReport = new LocalReport();

            var availableFields = new List<string>();
            for (var i = 0; i < dtTable.Columns.Count; i++)
            {
                if (dtTable.Columns[i].ColumnName != "RowID")
                availableFields.Add(dtTable.Columns[i].ColumnName);
            }

            MemoryStream m_rdl = new MemoryStream();
            RdlGenerator gen = new RdlGenerator();

            gen.AllFields = availableFields;
            gen.SelectedFields = availableFields;
            gen.WriteXml(m_rdl);
            m_rdl.Position = 0;

            localReport.LoadReportDefinition(m_rdl);

            ReportDataSource reportDataSource = new ReportDataSource("MyData", dtTable);
            localReport.DataSources.Add(reportDataSource);
            string reportType = "Excel";
            string encoding;
            string fileNameExtension;
            string mimeType;

            string deviceInfo = "<DeviceInfo><OutputFormat>Excel</OutputFormat></DeviceInfo>"; Warning[] warnings; string[] streams; byte[] renderedBytes;
            renderedBytes = localReport.Render(reportType, deviceInfo, out mimeType, out encoding, out fileNameExtension, out streams, out warnings);
            using (var fs = new FileStream(@"C:\home\output\output.xls", FileMode.Create))
            {
                fs.Write(renderedBytes, 0, renderedBytes.Length);
            }


I tried adding CreateTableGroups() to the Generator, but it's still bombing out after 64K rows, anybody know what I'm do wrong? Am I using the wrong expression or adding the wrong group?

        public Rdl.TableType CreateTable()
        {
            Rdl.TableType table = new Rdl.TableType();
            table.Name = "Table1";
            table.Items = new object[]
                {
                    CreateTableColumns(),
                    CreateHeader(),
                    CreateDetails(),
                    CreateTableGroups(),
                };
            table.ItemsElementName = new Rdl.ItemsChoiceType21[]
                {
                    Rdl.ItemsChoiceType21.TableColumns,
                    Rdl.ItemsChoiceType21.Header,
                    Rdl.ItemsChoiceType21.Details,
                    Rdl.ItemsChoiceType21.TableGroups,
                };
            return table;
        }

        private Rdl.TableGroupsType CreateTableGroups()
        {
            Rdl.TableGroupsType tableGroups = new Rdl.TableGroupsType();
            tableGroups.TableGroup = new TableGroupType[]
            {
                CreateTableGroup(),
            };
            return tableGroups;
        }

        private Rdl.TableGroupType CreateTableGroup()
        {
            Rdl.TableGroupType tableGroup = new TableGroupType();
            tableGroup.Items = new object[]
            {
                CreateGrouping(),
            };
            return tableGroup;
        }

        private Rdl.GroupingType CreateGrouping()
        {
            Rdl.GroupingType groupingType = new GroupingType();
          groupingType.Name="pagebreak";

groupingType.Items = new object[] { CreateGroupExpressions(), }; groupingType.ItemsElementName = new ItemsChoiceType17[] { ItemsChoiceType17.GroupExpressions }; return groupingType; } private Rdl.GroupExpressionsType CreateGroupExpressions() { Rdl.GroupExpressionsType groupExpressions = new GroupExpressionsType(); groupExpressions.GroupExpression = new string[] { "=Int((RowNumber(Nothing)-1)/65000)" }; return groupExpressions; }


The error:

{"Excel Rendering Extension: Number of rows exceeds the maximum possible rows per sheet in this format; Rows Requested: 169020, Max Rows: 65536"}

Where is RDLC in VS2013

$
0
0

Just I installed VS 2013 Professional Edition and trying to create RDLC report.

I'm not able to find the report part and also there no Report Viewer inToolBar.

Where is they are?

Generate PDF from C# object

$
0
0

I have a requirement, which need to generate the PDF from the C# domain object in asp.net MVC project. I am not supposed to use any third party libraries(iTextSharp, RazorPDF etc) for generating the PDF.

I can use SSRS.

Is there a way to generate a PDF report by using SSRS from C# POCO object?

Viewing all 1418 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>