Quantcast
Channel: Visual Studio Report Controls Forum
Viewing all 519 articles
Browse latest View live

Report Viewer not loading, An error occurred during local report processing.

$
0
0

I have created a C# web project in visual studio 2012.

I have created an rdlc report and assigned it to a report viewer in the webpage.

When I run the website and navigate to the page, instead of showing the report it displays the error message:

"An error occurred during local report processing. The report definition for report 'Report1' has not been specified. Object reference not set to an instance of an object."

I have checked that the build action in the report properties is set to 'embedded resource'.

Any help is greatly appreciated.


SSRS Project in Visual Studio 2010

$
0
0

I'm trying to create a new SQL Server 2008 Reporting Project in Visual Studio 2010 Ultimate. However there is 1 problem. I cannot find the template for the rptproj project type.

Can someone let me know how or what I need to install in order to get the project template in VS 2010?

iam aprogramer

$
0
0

hello microsoft 

iam aprogramer and i coded a t.v program 

that can play all of the world tv i used visual basic 6 

and i want to give it to microsoft please chat with me 

iam from egypt 

my email is mohamed_king858@yahoo.com 

ihave alot of cources 

Right to Left Report (RDLC)

How can I have my rdlc report with report review aspnet 3.5 ,netframework run on medim trust level at hosting servers?

$
0
0

Server Error in '/' Application.

Security Exception

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18034

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.

Source Error:
Line 31:              <hr />
Line 32: Line 33:     <rsweb:ReportViewer ID="YearClientReportViewer1"  ProcessingMode="Remote"Line 34:         OnDrillthrough="YearClientReportViewer1_Drillthrough" runat="server" 
Line 35:         Width="1012px">

Source File: D:\InetPub\vhosts\rhudata.org\httpdocs\AllClientLoadYearRep.aspx   Line:33
After rsearching on the internet, I set the trust level in my Web Config I get the error that the hosting administrator set the Override to false. Can any one help?

How can I have my rdlc report with report review aspnet 3.5 ,netframework run on medim trust level at hosting servers?

$
0
0

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.

Source Error:
Line 30:              <hr />
Line 31:     Line 32:     <rsweb:ReportViewer ID="YearOutpContraReportViewer1" Visible="false"  runat="server"Line 33:          OnDrillthrough="YearOutpContraReportViewer1_Drillthrough"
Line 34:          LinkActiveColor="Red" LinkActiveHoverColor="Yellow"

Source File: D:\InetPub\vhosts\rhudata.org\httpdocs\AllYearContraRep.aspx   Line:32

ReportViewer parameter arrays cannot be declared with 'new'

$
0
0

Hello,<o:p></o:p>

I have an application that I am changing to use ReportViewer instead of Crystal Reports. I have many variables with values that are calculated a run time based on choices that the user makes. I need to pass the values for these variables to the ReportViewer and I am doing that by setting the values for parameters that I create in the rdlc Parameters folder under Report Data and then passing the values to the report. <o:p></o:p>

Since I have many of these variables (200+), I wanted to try to keep them organized by names that would mean something to me when I see them. So I started setting the parameter names and values in arrays.<o:p></o:p>

Everything worked fine with the first array but, when I added the second array, I got an error message as show below. On researching the error, it looks like I may have to declare the arrays with "New" somehow but when I have tried, I get "ReportViewer parameter arrays cannot be declared with 'new'.<o:p></o:p>

Can someone
tell me how to fix this code?<o:p></o:p>

Thank you,<o:p></o:p>

Dan<o:p></o:p>

PrivateSub ReportViewerTEST_Load(sender As System.Object, e As System.EventArgs) HandlesMyBase.Load

Dim ProjInfo(13)As Microsoft.Reporting.WinForms.ReportParameter

       ProjInfo(0) = New Microsoft.Reporting.WinForms.ReportParameter("ProjName", gsProjName)

       ProjInfo(1) = New Microsoft.Reporting.WinForms.ReportParameter("ProjAddress", gsProjAddress)

       ProjInfo(2) = New Microsoft.Reporting.WinForms.ReportParameter("ProjCSZ", gsProjCSZ)

       ProjInfo(3) = New Microsoft.Reporting.WinForms.ReportParameter("JobNo", gsProjNo)

       ProjInfo(4) = New Microsoft.Reporting.WinForms.ReportParameter("CalcNo", gsCALCno)

       ProjInfo(5) = New Microsoft.Reporting.WinForms.ReportParameter("CalcDate", Now.Date)

       ProjInfo(6) = New Microsoft.Reporting.WinForms.ReportParameter("PrepName", gsPrepName)

       ProjInfo(7) = New Microsoft.Reporting.WinForms.ReportParameter("PrepCoName", gsPrepCoName)

       ProjInfo(8) = New Microsoft.Reporting.WinForms.ReportParameter("PrepAddress", gsPrepAddress)

       ProjInfo(9) = New Microsoft.Reporting.WinForms.ReportParameter("PrepCSZ", gsPrepCSZ)

       ProjInfo(10) = New Microsoft.Reporting.WinForms.ReportParameter("PrepPhone", gsPrepPhone)

       ProjInfo(11) = New Microsoft.Reporting.WinForms.ReportParameter("PrepFax", gsPrepFax)

       ProjInfo(12) = New Microsoft.Reporting.WinForms.ReportParameter("PrepEmail", gsPrepEmail)

       ProjInfo(13) = New Microsoft.Reporting.WinForms.ReportParameter("PrepURL", gsPrepURL)

       ReportViewer1.LocalReport.SetParameters(ProjInfo)

       Dim DesignCat(18) As Microsoft.Reporting.WinForms.ReportParameter

       DesignCat(0) =  New Microsoft.Reporting.WinForms.ReportParameter("OccupancyCat", gsUseGroup)

       DesignCat(1) = New Microsoft.Reporting.WinForms.ReportParameter("SiteClass", gsSclass)

       DesignCat(2) = New Microsoft.Reporting.WinForms.ReportParameter("Ss", gdSs)

       DesignCat(3) = New Microsoft.Reporting.WinForms.ReportParameter("S1", gdS1)

       DesignCat(4) = New Microsoft.Reporting.WinForms.ReportParameter("Fa", (Format(gdFa," 0.00")))

       DesignCat(5) = New Microsoft.Reporting.WinForms.ReportParameter("Fv", (Format(gdFv," 0.00")))

       DesignCat(6) = New Microsoft.Reporting.WinForms.ReportParameter("SMS", (Format(gdSms," 0.000")))

       DesignCat(7) = New Microsoft.Reporting.WinForms.ReportParameter("SM1", (Format(gdSm1," 0.000")))

       DesignCat(8) = New Microsoft.Reporting.WinForms.ReportParameter("Ss-2", gdSs)

       DesignCat(9) = New Microsoft.Reporting.WinForms.ReportParameter("S1-2", gdS1)

       DesignCat(10) = New Microsoft.Reporting.WinForms.ReportParameter("Fa-2", (Format(gdFa," 0.00")))

       DesignCat(11) = New Microsoft.Reporting.WinForms.ReportParameter("Fv-2", (Format(gdFv," 0.00")))

       DesignCat(12) = New Microsoft.Reporting.WinForms.ReportParameter("SMS-2", (Format(gdSms," 0.000")))

       DesignCat(13) = New Microsoft.Reporting.WinForms.ReportParameter("SM1-2", (Format(gdSm1," 0.000")))

       DesignCat(14) = New Microsoft.Reporting.WinForms.ReportParameter("SDS", (Format(gdSds," 0.000")))

       DesignCat(15) = New Microsoft.Reporting.WinForms.ReportParameter("SD1", (Format(gdSd1," 0.000")))

       DesignCat(16) = New Microsoft.Reporting.WinForms.ReportParameter("ShortDCategory", SHTgrp)

       DesignCat(17) = New Microsoft.Reporting.WinForms.ReportParameter("LongDCategory", LONGgrp)

       DesignCat(18) = New Microsoft.Reporting.WinForms.ReportParameter("AppDCategory", gsSDcat)

       ReportViewer1.LocalReport.SetParameters(DesignCat)

    Me.ReportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout)

   

EndSub



Dan

How to set line spacing in a textbox on a rdlc report?

$
0
0

The application has to print a report to a pre-printed stationary paper, which has lines printed to it.

We need to print the contents of a multi-line textbox to this pre-printed paper with lines, in such a way that each of the lines in the textbox is printed right above the lines printed in the paper. Relate this to we printing some contents to a ruled note book.

Is there a way to set the space between each lines of the multi-line textbox?

The application is being developed in C#.NET 4.0, and report type is rdlc (local report)

I tried using LineHeight, SpaceAfter, SpaceBefore properties, but the rendering does not change.

Kindly help!!!


hao can i make the rdlc report display the toolbar in the bottom of the page

$
0
0
when the page is too long,i read the content in the bottom of my page, then i want to see the next page i have to back to the header and click the "next page" bar,but if there are some methods to add the toolbar in the footer of the page?

Report Viewer Export function

$
0
0
My VB .Net app has a reportviewer on two forms - the export (XLS,.. etc) works fine on one form but not on the other (which displays message '... attempted to access an unloaded appdomain'.)  The major difference in the two implementations is the one that works has an mdiparent and the form that fails to export does not have an mdiparent.  Both perform functions as expected re data display and print.

hpw

Metafile not disposing correctly?

$
0
0

Very strange issue here and I'm stumped.

To start, I'm taking a LocalReport and rendering with a slightly modified version of this:This

Once I have the rendered pages, I provide the streams to a PrintDocument. It has a PrintPage handler that creates a Metafile with the page stream and draws the metafile content onto the PrintPageEventArgs Graphics.

Here's the PrintPage:

if (stream.Length > 0)
{
    stream.Position = 0;
    using (var pageImage = new Metafile(stream))
    {
        ev.Graphics.DrawImage(pageImage, ev.PageBounds);
    }

    stream.Close();
    stream.Dispose();
    GC.Collect();
}


I was having a problem with getting a generic GDI exception, but it only seemed to be if I was printing a large enough report and if it was being printed from a Windows XP machine.

My thought was that the metafile wasn't getting disposed properly. What I decided to do was put the following in a loop:

for ( loop = 0; loop < 100; loop++)
{    
    stream.Position = 0;
    using (var pageImage = new Metafile(stream))
    {    
        ev.Graphics.DrawImage(pageImage, ev.PageBounds);
    }
}

Here are my observations:

1. Windows XP: Same problem as before, generic GDI crash. Also note that I tested this with a small version of the report that normally would have rendered fine.

2. Windows 7: Doesn't crash, but renders strange. The report has a photo in the middle of the first page. It seems to have taken this photo and shrunk it down to about half the size and layered it on top of the correct sized photo. It seemed like the rest of the report rendered fine.

I'm not really worried about the Windows 7 issue since it renders fine normally. I'm just wondering what I'm supposed to do about the Windows XP problem. Upgrading the XP machine to 7 is an option, but I was hoping to actually fix the issue. My gut feeling says it's an issue with not disposing properly, but I don't know what to do.

I thought it was related to This, but we seem to have the latest copy of the file.


IEnumerable in ReportDataSource

$
0
0

Hi!

I have made a client report (.rdlc) file that uses the IEnumerable data source available in VS 2010. The list of objects that I send into the report has properties that itself are "complex" objects. I refer to these complex objects from inside the report using e.g. the following syntax:

=FormatPercent(Fields!InsuranceFee.Value.FundCost, 2)

where InsuranceFee is a property of the InsuranceYield class whose objects the input list is populated with. FundCost is a simple decimal property of the InsuranceFee class.

When using this syntax and running the report from inside VS 2010/Win 7 everything works fine and I get a decimal value for FundCost. Though when I run the exact same code from a Win 2008 R2 server that has the report redistributable 2010 package installed all I get is the #Error message in the report for all "complex" fields that access its properties through the "Fields!<Property>.Value.<Property>" syntax. The simple fields, e.g. the decimal field "Fields!<Property>" gets valid values.

Is there a reason for this strange behaviour? Is it something that has to be installed on the web server (Win 2008 R2)? It seems really strange that it works in VS 2010 and not vice versa.

Error in tablix on Win 2008 R2 serverLocal processing in VS2010/Win7

Thanks in advance!
Best regards
Lars

How can i add a Class as a VB 2010 ReportViewer Data Source

$
0
0

Hello,

I am tryng to add a Class as a Data Source in the VB2010 ReportViewer Report Data. I have created a Class named ProjInfo.vb and I have assigned values in the ReporViewer form to fields in the Class. However, the Class does not appear in the list of available Data Sources or Data Sets, when I try to Add the Data Source to the Reprt Viewer. The code for the Class is shown below. Can someone tell me how to fix the Class so I can use it as a Data Source with the ReprtViewer?

Thank you,

Dan

PublicClassProjInfo

   Public PrjName AsString

   Public PrjAddress AsString

   Public PrjCSZ AsString

   Public JbNo AsString

   Public ClcNo AsString

   Public ClcDate AsString

   Public PrpName AsString

   Public PrpCoName AsString

   Public PrpAddress AsString

   Public PrpCSZ AsString

   Public PrpPhone AsString

   Public PrpFax AsString

   Public PrpEmail AsString

   Public PrpURL AsString

   PublicProperty ProjAddressAsString

       Get

           Return PrjAddress

       EndGet

       Set(value AsString)

           PrjAddress = value

       EndSet

   EndProperty

   PublicProperty ProjCSZAsString

       Get

           Return PrjCSZ

       EndGet

       Set(value AsString)

           PrjCSZ = value

       EndSet

   EndProperty

   PublicProperty JobNoAsString

       Get

           Return JbNo

       EndGet

       Set(value AsString)

           JbNo = value

       EndSet

   EndProperty

   PublicProperty CalcNoAsString

       Get

           Return ClcNo

       EndGet

       Set(value AsString)

           ClcNo = value

       EndSet

   EndProperty

   PublicProperty CalcDateAsString

       Get

           Return ClcDate

       EndGet

       Set(value AsString)

           ClcDate = value

       EndSet

   EndProperty

   PublicProperty PrepNameAsString

       Get

           Return PrpName

       EndGet

       Set(value AsString)

           PrpName = value

       EndSet

   EndProperty

   PublicProperty PrepCoNameAsString

       Get

           Return PrpCoName

       EndGet

       Set(value AsString)

           PrpCoName = value

       EndSet

   EndProperty

   PublicProperty PrepAddressAsString

       Get

           Return PrpAddress

       EndGet

       Set(value AsString)

           PrpAddress = value

       EndSet

   EndProperty

   PublicProperty PrepCSZAsString

       Get

           Return PrpCSZ

       EndGet

       Set(value AsString)

           PrpCSZ = value

       EndSet

   EndProperty

   PublicProperty PrepPhoneAsString

       Get

           Return PrpPhone

       EndGet

       Set(value AsString)

           PrpPhone = value

       EndSet

   EndProperty

   PublicProperty PrepFaxAsString

       Get

           Return PrpFax

       EndGet

       Set(value AsString)

           PrpFax = value

       EndSet

   EndProperty

   PublicProperty PrepEmailAsString

       Get

           Return PrpEmail

       EndGet

       Set(value AsString)

           PrpEmail = value

       EndSet

   EndProperty

   PublicProperty PrepURLAsString

       Get

           Return prpurl

       EndGet

       Set(value AsString)

           prpurl = value

       EndSet

   EndProperty

   PublicProperty ProjNameAsInteger

       Get

           Return PrjName

       EndGet

       Set(value AsInteger)

           PrjName = value

       EndSet

   EndProperty

EndClass


Dan


read the pdf file from sqlserver using rdlc report

$
0
0

read the pdf file from sqlserver2008 and read that pdf file using rdlc column there is the possible to read the pdf file from sqlserver2008 using rdlc report ?

1.display the pdf file in rdlc coulmn using reportviewer

possible for read the image from database but how can i read the pdf file from sqlserver using .rdlc if have any code implementation let me know as soon as possible

Multi value parameter Combo box does not get displayed via SSRS 2012 Report Viewer

$
0
0

Hi

We are trying to use a report developed using SSRS 2008 and deploy / run in SSRS 2012. The multivalue parameter does not get displayed proper when viewed via the Report Viewer. The same does appear when run through Report builder.

Any clues?


the report definition has an invalid target namespace 'http://schemas.microsoft.sqlserver.reporting/2008/01/reportdefinition' which cannot be upgraded".

$
0
0

Hi All,

            I have Visual Studio 2010, and .net framework 4.0 installed on my development machine.    I also have SQL Server 2008 installed (which you indicate above does not affect the issue).

           When I create a new Report project in Visual Studio 2010, the RDLC file has a reference inside it to .../2008/01/.... that looks like this:

<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">

I have tried this several times.  I have only built "loca" reports.  When I build on my local machine, the reports build and run just dandy.   But when I try to build them on our build server, running MSBUILD, the  build fails with:

the report definition has an invalid target namespace 'http://schemas.microsoft.sqlserver.reporting/2008/01/reportdefinition' which cannot be upgraded".

Im not sure why the new report didn't get created as /2010/, since everything I believe is using .net framework 4.0.       Any help greatly appreciated.

Regards,

Mike

 

 

VB 2010 ReportViewer Data Source Collection items with values from variables and draged/droped in rdlc do not sow up in the report

$
0
0

Hello,

I have a VB 2010 application and I am trying to use Reportviewer rather than Crystal. I have many values assigned to variables that are determined at run time by the user and resulting calcultions. I got Parameters to work but I have so many that it's hard to keep organized and not miss something. I appears that Classes and Collections with a method to return a list would work much better. I have been trying but can't quite get there.

So far I appear to have been able to get the first of the Classes, Collection and List into the ReportViewer Data Source and I have draggged and dropped them into the report (Report1.rdlc) and I have assigned values (variables determined at run time) to the Class Properties in the Load event of the ReportViewer form (SCoPeReport.vb). However, the text values for the properties do not show up on the report.

Can you tell me what I am missing to make this work? I have hundreds of these variables to keep track of and I am try to get this working on a small number of them to start the first of the Classes. My present code is shown below.

Thank you,

Dan

This is the code for the Class

Imports System.Collections.Generic

PublicClassProjectInfo :InheritsList(OfProjInfo) 'From this above line Data Sourced gets Drag]Drop witgh fields below.

EndClass

PublicClassProjInfo

   Dim _PrjName AsString

   Dim _PrjAddress AsString

   Dim _PrjCSZ AsString

   Dim _JbNo AsString

   Dim _ClcNo AsString

   Dim _ClcDate AsString

   Dim _PrpName AsString

   Dim _PrpCoName AsString

   Dim _PrpAddress AsString

   Dim _PrpCSZ AsString

   Dim _PrpPhone AsString

   Dim _PrpFax AsString

   Dim _PrpEmail AsString

   Dim _PrpURL AsString

   

   PublicProperty PrjNameAsString

       Get

           Return _PrjName

       EndGet

       Set(value AsString)

           _PrjName = value

       EndSet

   EndProperty

   PublicProperty PrjAddressAsString

       Get

           Return _PrjAddress

       EndGet

       Set(value AsString)

           _PrjAddress = value

       EndSet

   EndProperty

   PublicProperty PrjCSZAsString

       Get

           Return _PrjCSZ

       EndGet

       Set(value AsString)

           _PrjCSZ = value

       EndSet

   EndProperty

   PublicProperty JbNoAsString

       Get

           Return _JbNo

       EndGet

       Set(value AsString)

           _JbNo = value

       EndSet

   EndProperty

   PublicProperty ClcNoAsString

       Get

           Return _ClcNo

       EndGet

       Set(value AsString)

           _ClcNo = value

       EndSet

   EndProperty

   PublicProperty ClcDateAsString

       Get

           Return _ClcDate

       EndGet

       Set(value AsString)

           _ClcDate = value

       EndSet

   EndProperty

   PublicProperty PrpNameAsString

       Get

           Return _PrpName

       EndGet

       Set(value AsString)

           _PrpName = value

       EndSet

   EndProperty

   PublicProperty PrpCoNameAsString

       Get

           Return _PrpCoName

       EndGet

       Set(value AsString)

           _PrpCoName = value

       EndSet

   EndProperty

   PublicProperty PrpAddressAsString

       Get

           Return _PrpAddress

       EndGet

       Set(value AsString)

           _PrpAddress = value

       EndSet

   EndProperty

   PublicProperty PrpCSZAsString

       Get

           Return _PrpCSZ

       EndGet

       Set(value AsString)

           _PrpCSZ = value

       EndSet

   EndProperty

   PublicProperty PrpPhoneAsString

       Get

           Return _PrpPhone

       EndGet

       Set(value AsString)

           _PrpPhone = value

       EndSet

   EndProperty

   PublicProperty PrpFaxAsString

       Get

           Return _PrpFax

       EndGet

       Set(value AsString)

           _PrpFax = value

       EndSet

   EndProperty

   PublicProperty PrpEmailLAsString

       Get

           Return _PrpEmail

       EndGet

       Set(value AsString)

           _PrpEmail = value

       EndSet

   EndProperty

   PublicProperty PrpURLAsString

       Get

           Return _PrpURL

       EndGet

       Set(value AsString)

           _PrpURL = value

       EndSet

   EndProperty

EndClass

This is the code for the Load event of the Reprtviewer form (SCoPeReport.vb)

PublicClassSCoPeReport

   PrivateSub SCoPeReport_Load(senderAs System.Object, eAs System.EventArgs)HandlesMyBase.Load

       Dim Project AsNewProjInfo

       Project.PrjName = gsProjName

       Project.PrjAddress = gsProjAddress

       Project.PrjCSZ = gsProjCSZ

       Project.JbNo = gsProjNo

       Project.ClcNo = gsCALCno

       Project.ClcDate = Now.Date

       Project.PrpName = gsPrepName

       Project.PrpCoName = gsPrepCoName

       Project.PrpAddress = gsPrepAddress

       Project.PrpCSZ = gsPrepCSZ

       Project.PrpPhone = gsPrepPhone

       Project.PrpFax = gsPrepFax

       Project.PrpEmailL = gsPrepEmail

       Project.PrpURL = gsPrepURL

       Me.ReportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout)

   EndSub

EndClass


Dan

ReportViewer center display...

$
0
0
Hi guys

Im using ReportViewer control to display reports in my application. However the reports are displayed, justified left. How can i display them in the center of the viewer?

Visual Stuido Crash everytime when I do the following things with Reportviewer

$
0
0

I am going nuts with the Visual Studio 2010. It crashed everytime when I try do the following things on the reportviwer.

1.New Dataset, Appcrash

2.Add a table to the design, Appcrash

3.New a report Wizard, Appcrash on the first window.

Would anyone please give me some suggestion for me to get rid of the crashed so thai I can do the job. Many thanks.


Reporting services - How to check if a subreport continues on next page?

$
0
0
Have a subreport included in a report but according to how much data that is displayed the subreport can continue on next page. Is there any way to check if the subreport spans over several pages (can't use global variables i.e PageNumber)?  
Viewing all 519 articles
Browse latest View live


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