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

Why is my report (local processing) taking so long to run (report with simple subreport)

$
0
0

I have a main report that queries for payments made based on a time frame. It uses a DataSet (tableadapter with parameters for time frame).  The reportviewer is hosted on a web page as a local report.  When I browse to the page that invokes the reportviewer, it's absolutely blank for about 90 seconds, then I get the reportviewer "Loading..." for a brief second or 2, then the report displays.  It's 11 pages.  Looks great, I would really hate to abandon the design with the subreport.  But processing for this long will not be acceptable when the customer needs to run the report for an entire month.  Or even 2 weeks.

It's a 2 table query (view) that has main data for the data row, then children for what accounts were paid for on one payment processing transaction.  The query isn't the problem.  I've turned on SQL profile, to make sure it's running the query only once.  The query for only 4 days of transactions is returning 133 rows and the report takes 1.5 minutes.

I set up the typical event for subreportprocessing.  The GetPaymentDetails method is using a static list in memory that only gets populated once.

void LocalReport_SubreportProcessing(object sender, Microsoft.Reporting.WebForms.SubreportProcessingEventArgs e)
        {
            // get LogPaymentID from the parameters
            int iLogPaymentID = Convert.ToInt32(e.Parameters[0].Values[0]);
            e.DataSources.Clear();
            CustomDS dataObj = new CustomDS();
         
            var subReportRows = CustomDS.GetPaymentDetails().FindAll(element => element.LogPaymentID == iLogPaymentID);
            e.DataSources.Add(new Microsoft.Reporting.WebForms.ReportDataSource()
             {
                 Name = "DSPaymentDetailsChild",
                 Value = subReportRows
             });

        }

Is there any hope of speeding this up?  Where can I set some break points to see what event is consuming all the time?  Can I put a break point before and right after all the calls to the subprocessing event? (in this case after the 133 calls to this function.  I want to put a timer on how long that took.)  If I have to abandon ship on use of the subreport, any suggestions on it's replacement? (I'm using VS2012 and version 11.0 of the report viewer.)

Thanks, Donna



ASP.NET 4.0 SSRS 2008 / reportviewer control not show data in ASPX page

$
0
0

I'm trying to show a SSRS 2008 report (.rdl) in a asp.net web page using the ReportViewer control (VS2010). The report show up well in browser when I test it in VS 2010 enviroment, but when I try to access the aspx page in production it only show the reportviewer toolbar with no data. User validation and parametesrs are fine because I can see these parameters values in the report if I turn ShowParameterPrompts property to true.  

ANY HELP will be appreciated !!!

Here is my C# code for the page.
reportviewer control name = rpvExportacion:

    protected void Page_Init(object sender, EventArgs e)
    {

        ScriptManager1.EnablePartialRendering = false;

    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {

           Reporte('01','2012')

         }

     }

protected void Reporte(string Cia, string Ano)
    {

rpvExportacion.Visible = true;

rpvExportacion.ProcessingMode = ProcessingMode.Remote;

IReportServerCredentials irsc = new CustomReportCredentials("Administrator", "xxxxx", "YYYYY");
rpvExportacion.ServerReport.ReportServerCredentials = irsc;

 rpvExportacion.ServerReport.ReportServerUrl = new System.Uri(ConfigurationManager.AppSettings["ReportServer"].ToString());
rpvExportacion.ServerReport.ReportServerUrl = new System.Uri("Http://AD/ReportServer");

rpvExportacion.ServerReport.ReportPath = "/REVEEXreports/VentasExportacion";

ReportParameter[] Param = new ReportParameter[2];
Param[0] = new ReportParameter("Cia", Cia);
 Param[1] = new ReportParameter("Ano", Ano);
 rpvExportacion.ServerReport.SetParameters(new ReportParameter[] { Param[0] });
rpvExportacion.ServerReport.SetParameters(new ReportParameter[] { Param[1] });

rpvExportacion.SizeToReportContent =true;

}

public class CustomReportCredentials : IReportServerCredentials
    {
        private string _UserName;
        private string _PassWord;
        private string _DomainName;

        public CustomReportCredentials(string UserName, string PassWord, string DomainName)
        {
            _UserName = UserName;
            _PassWord = PassWord;
            _DomainName = DomainName;
        }

        public System.Security.Principal.WindowsIdentity ImpersonationUser
        {
            get { return null; }
        }

        public ICredentials NetworkCredentials
        {
            get { return new NetworkCredential(_UserName, _PassWord, _DomainName); }
        }

        public bool GetFormsCredentials(out Cookie authCookie, out string user, out string password, out string authority)
        {
            authCookie = null;
            user = password = authority = null;
            return false;
        }

    }

The report can be open everywhere except inside the aspx page(only show the reportviewer toolbar and the rest is empty). I can open it throughhttp://AD/repots/VentasExportacion at any PC of the network. As I mention even in the internal test webserver in VS2010 can be open and it works. Any suggestion ?.

SSRS Server Reports Display Fine Locally, Doesn't Display on Production Server

$
0
0

Hi all,

  I'm just gonna state up front that my company's development environment is a mess :(.  I'm developing in VS 2010, but our production environment was set up way back in the day and is pretty far behind.  I've created a few SSRS reports, and would like for them to be viewed in my asp.net project.  The only way I know to do this is through a ReportViewer (I'm not married to the reportViewer, if anybody knows any other ways to get SSRS reports to display, feel free to suggest it).  

  Originally, I tried to drag in the ReportViewer control that is with VS 2010, but this altered the web.config file with the ReportViewer 2010 configuration settings, and when I moved it into production the entire website went down :(.  As a work around, I fired up VS 2008, created my ReportViewer reference in it, and then copied/pasted the code into my 2010 project.  This actually worked well on my local machine -- the report displays and everything looks great.  However, when I moved the code into our production environment, the toolbar section of the ReportViewer displays along with the parameters, but the report itself does not display and some of the button images on the toolbar are "crossed out".  The parameters are the correct parameters for the report, so it is getting to the report and pulling it in, it's just not displaying it for some reason.  I'm hoping somebody has run across this and knows a solution, below is all of the code and some screenshots that I think are relevant:

From the aspx page:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="academicIntervention_Default" %><%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %><%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %><rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" 
    Font-Size="8pt" Height="560px" ProcessingMode="Remote" Width="929px"><ServerReport ReportPath="/Academic Intervention/StudentAssignment" 
        ReportServerUrl="http://e275rd6/Reportserver" /></rsweb:ReportViewer>

All ReportViewer References in the web.config file:

<assemblies><add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/><add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
   ...
   ...
   ...<buildProviders><add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/></buildProviders>
   ...
   ...
   ...<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"/><add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /><add path="ChartAxd.axd" verb="*" type="Dundas.Charting.WebControl.ChartHttpHandler" validate="false"/></httpHandlers>

A screenshot of what the report looks like when ran locally versus what it looks like on the production server:

Visual Studio 2010 ReportViewer Render Problem on the Remote Desktop

$
0
0

Hello,

I have a frustrating problem with VS 2010 ReportViewer Control. When I print my simple VS2010 report on remote desktop, fonts are rendered too badly, whereas the same report is rendered very well on the local machine. This problem seems absolutely realated with VS2010 ReportViewer control so that I haven't have a problem with VS2008 ReportViewer control in the same situation. I took snapshots of every print layout on both local and remote desktops.

These are the snapshots of the print layouts:

Visual Studio 2010 Remote Desktop (prints too badly!)
http://img412.imageshack.us/img412/410/vs2010remote.jpg

Visual Studio 2010 Local Desktop (normal)
http://img716.imageshack.us/img716/8167/vs2010local.jpg

Visual Studio 2008 Remote Desktop (normal)
http://img4.imageshack.us/img4/6564/vs2008remote.jpg

Visual Studio 2008 Local Desktop (normal)
http://img210.imageshack.us/img210/3174/vs2008local.jpg

Report Layout how to control Automatically? rdlc report 2010

$
0
0
Please advice , kindly we have an application with two language options Arabic (Right to left direction) and
 Englih(Left to right Direction) we need automatically change the report layout direction, rather than design 2 reports . please kindly your help and advice.
Note we use the report viewer 2010 , Visual studio SP1 2010



how to hide a column in microsoft report designer VS 2008

$
0
0

I have three columns (col1 col2 col3). Col3 shows the results of the comparison between col1 and col2 and if col1 and col2 don't match, col3 will show value don't not match. if all the values matches I need to hide col3.

i tried  iif(col1<>col2>,true,false) - this hides the column if there is one row that don't match.

Any assistant or guidance is greatly appreciated

thanks


How to code in reportviewer.drill through event

$
0
0

 

Hi,

I have two RDLC reports(Report1 and Report2) and in the 'report1' I have summery data grouped by "AccID" field (This is the parameter to Report2) . What I want is when I click on AccID field in Report1 to have the detailed report i.e Report2 be viewed. I have set parameters in report2 and report1 correctly only thing I am stuck on coding in ReportViewr.DrillThroughEvent. Please give me the requierd code.

Thaks

Compiler Error Message: CS0433 on windows 8

$
0
0
0

I have a Visual Studio 2010 solution using Microsoft ReportViewer.  It compiles on windows 7 but not on windows 8.

It fails with the following:

Compiler Error Message: CS0433: The type 'Microsoft.Reporting.WebForms.ReportDataSource' exists in both 'c:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\9.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.dll' and 'c:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.dll'

 

I have the following in the web.config to no avail.

    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity  name="Microsoft.ReportViewer.WebForms" publicKeyToken="b03f5f7f11d50a3a"/>
        <bindingRedirect oldVersion="9.0.0.0-9.1.0.0" newVersion="10.0.0.0" culture="neutral" />
      </dependentAssembly>
    </assemblyBinding>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity  name="Microsoft.ReportViewer.WebForms" publicKeyToken="b03f5f7f11d50a3a"/>
        <bindingRedirect oldVersion="9.0.0.0-9.1.0.0" newVersion="10.0.0.0" culture="neutral" />
      </dependentAssembly>
    </assemblyBinding>

Is there a way around this issue?


Ben Levy


Crystal reports in visual studio 2010

$
0
0

I got this error while building a window application in visual studio 2010 c#.net. Any one hd solve this error plz help me...

Error12 'Final_Prj.EmpReport' does not contain a definition for 'ReportDefinition' and no extension method 'ReportDefinition' accepting a first argument of type 'Final_Prj.EmpReport' could be found (are you missing a using directive or an assembly reference?)D:\Gaurav\Task18-02-2013\Final Prj\Final Prj\EmpReport.cs5529 Final Prj

Error14 'Final_Prj.EmpReport' does not contain a definition for 'ReportDefinition' and no extension method 'ReportDefinition' accepting a first argument of type 'Final_Prj.EmpReport' could be found (are you missing a using directive or an assembly reference?)D:\Gaurav\Task18-02-2013\Final Prj\Final Prj\EmpReport.cs6329 Final Prj

Error16 'Final_Prj.EmpReport' does not contain a definition for 'ReportDefinition' and no extension method 'ReportDefinition' accepting a first argument of type 'Final_Prj.EmpReport' could be found (are you missing a using directive or an assembly reference?)D:\Gaurav\Task18-02-2013\Final Prj\Final Prj\EmpReport.cs7129 Final Prj

Error18 'Final_Prj.EmpReport' does not contain a definition for 'ReportDefinition' and no extension method 'ReportDefinition' accepting a first argument of type 'Final_Prj.EmpReport' could be found (are you missing a using directive or an assembly reference?)D:\Gaurav\Task18-02-2013\Final Prj\Final Prj\EmpReport.cs7929 Final Prj

Error20 'Final_Prj.EmpReport' does not contain a definition for 'ReportDefinition' and no extension method 'ReportDefinition' accepting a first argument of type 'Final_Prj.EmpReport' could be found (are you missing a using directive or an assembly reference?)D:\Gaurav\Task18-02-2013\Final Prj\Final Prj\EmpReport.cs8729 Final Prj

Error9 The type or namespace name 'CrystalReports' does not exist in the namespace 'CrystalDecisions' (are you missing an assembly reference?)D:\Gaurav\Task18-02-2013\Final Prj\Final Prj\EmpReport.cs1628 Final Prj

Error11 The type or namespace name 'CrystalReports' does not exist in the namespace 'CrystalDecisions' (are you missing an assembly reference?)D:\Gaurav\Task18-02-2013\Final Prj\Final Prj\EmpReport.cs5333 Final Prj

Error13 The type or namespace name 'CrystalReports' does not exist in the namespace 'CrystalDecisions' (are you missing an assembly reference?)D:\Gaurav\Task18-02-2013\Final Prj\Final Prj\EmpReport.cs6133 Final Prj


How to Control the showing of data in the Crystal Report

$
0
0

Hi All,

 

I'm hoping you all have a very fine day. Well, I also hope that it is a fine day for me to find solutions to my problem.

 

I have a requirement on the report I'm doing right now that make me feel miserable. Is it possible to control the showing of data in the Crystal Report?. To be clear with, I have a Declaration Form which requires 9 rows only per page ( to be filled with description, countrycode, etc.). Let's say that the Description of the first item (record) extends to 4th row (4 rows) and the description of the second item shall extend to the 11th row (7 rows). Because the form only permits 9 rows to be filled with data, the description of the second item should be shown such that the first 5 rows is on the first page together with the description of the first item (4 rows) while the 6th and the 7th row of the description will be displayed on the second page.

 

To elaborate more:

 

[First Page]

 

Item 1   This description extends       [country code]           [etc]

 

            to the 4th row of this

 

            form. And so it won't be

 

            cut.

 

Item 2   This description extends        [country code]          [etc]

 

            to the 11th row of this

 

            form. And so it will be

 

            cut. The problem is how

 

            can I cut this description

 

 

[Second Page]

 

            such that the continuation

 

            will be shown here.

 

 

Please help me with this problem.   

Object datasources vanish from rdlc data sources in web project

$
0
0

Anyone having issues with their object datasources appearing and
vanishing from the datasource browser?

I create an object for binding as a datasource in my App_Code folder,
compile my web project and it appears in the datasources in the report
designer.  Then I will make an aspx, setup a reportviewer control for
my new report, go back to the rdlc and the object datasource sometimes
just vanishes.

I refresh, no luck.

The only solution I found is to draft the rdlc to the App_Code folder
where my class is, then refresh datasources and it finds it.  Then if I
move it away, they vanish again.

Am I missing something on how the object datasources work in web
projects?

Error when adding more that one Class as a DataSet to VB 2010 ReportViewer

$
0
0

Hello,

When I try to add more than one Class as a DataSet using the same methodology that i did for the first one, I get a lot of errors. So, I am doing something wrong.

I added another Class and  Named it SDCinfo and then entered the code for the added Class so that it would show up in the Application Data Sources. I also added a BindingSource to the ReportViewer form (SCoPeReport.vb) and selected SDCinfo as the Application Data Source for it. I then added code behind the ReportViewer form for the new ReportDataSource named "SDCat". The first one was named "Proj". I then dragged and dropped the data from the Report Data to the Report1.rdlc and tried to run it in debug.

I got 34 errors all of which are similar to this:

Error   43         The Value expression for the text box ‘Textbox5’ refers to the field ‘ClcNo’.Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the specified dataset scope.   C:\Documents and Settings\DCD\My Documents\Visual Studio 2010\Project Report Viewer TEST\IBC 2009 BRACE\IBC 2009\Report1.rdlc          SCoPe 2009

The code the I have behind the ReportViewer form and for the second Class that I added for the second Class is shown below.

I am going to need 10 or 12 of the Classes to be used as DataSets. Can you tell me where I am making my mistake?

Thank you,

Dan

Imports System.Collections.Generic

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

EndClass

PublicClassSDCinfo

   Private _OCat AsString

   Private _SClass AsString

   Private _Ss AsDouble

   Private _S1 AsDouble

   Private _Fa AsDouble

   Private _Fv AsDouble

   Private _SMS AsDouble

   Private _SM1 AsDouble

   Private _SDS AsDouble

   Private _SD1 AsDouble

   Private _ShtCat AsString

   Private _LngCat AsString

   Private _AppCat AsString

   PublicSharedFunction GetListOfSDCinfo()

      Dim MySDCinfoList AsNewList(OfSDCinfo)

      Dim theSDCinfo AsNewSDCinfo

      theSDCinfo._OCat = gsUseGroup

      theSDCinfo._SClass = gsSclass

      theSDCinfo._Ss = gdSs

      theSDCinfo._S1 = gdS1

      theSDCinfo._Fa = (Format(gdFa, " 0.00"))

      theSDCinfo._Fv = (Format(gdFv, " 0.00"))

      theSDCinfo._SMS = (Format(gdSms, " 0.000"))

      theSDCinfo._SM1 = (Format(gdSm1, " 0.000"))

      theSDCinfo._SDS = (Format(gdSds, " 0.000"))

      theSDCinfo._SD1 = (Format(gdSd1, " 0.000"))

      theSDCinfo._ShtCat = SHTgrp

      theSDCinfo._LngCat = LONGgrp

      theSDCinfo._AppCat = gsSDcat

      MySDCinfoList.Add(theSDCinfo)

      GetListOfSDCinfo = MySDCinfoList

   EndFunction

   PublicProperty OCatAsString

      Get

          Return _OCat

      EndGet

      Set(value AsString)

          _OCat = value

      EndSet

   EndProperty

   PublicProperty SClassAsString

      Get

          Return _SClass

      EndGet

      Set(value AsString)

          _SClass = value

      EndSet

   EndProperty

   PublicProperty SsAsString

      Get

          Return _Ss

      EndGet

      Set(value AsString)

          _Ss = value

      EndSet

   EndProperty

   PublicProperty S1AsString

      Get

          Return _S1

      EndGet

      Set(value AsString)

          _S1 = value

      EndSet

   EndProperty

   PublicProperty FaAsString

      Get

          Return _Fa

      EndGet

      Set(value AsString)

          _Fa = value

      EndSet

   EndProperty

   PublicProperty FvAsString

      Get

          Return _Fv

      EndGet

      Set(value AsString)

          _Fv = value

      EndSet

   EndProperty

   PublicProperty SMSAsString

      Get

          Return _SMS

      EndGet

      Set(value AsString)

          _SMS = value

      EndSet

   EndProperty

   PublicProperty SM1AsString

      Get

          Return _SM1

      EndGet

      Set(value AsString)

          _SM1 = value

      EndSet

   EndProperty

   PublicProperty SDSAsString

      Get

          Return _SDS

      EndGet

      Set(value AsString)

          _SDS = value

      EndSet

   EndProperty

   PublicProperty SD1AsString

      Get

          Return _SD1

      EndGet

      Set(value AsString)

          _SD1 = value

      EndSet

   EndProperty

   PublicProperty ShtCatAsString

      Get

          Return _ShtCat

      EndGet

      Set(value AsString)

          _ShtCat = value

      EndSet

   EndProperty

   PublicProperty LngCatAsString

      Get

          Return _LngCat

      EndGet

      Set(value AsString)

          _LngCat = value

      EndSet

   EndProperty

   PublicProperty AppCatAsString

      Get

          Return _AppCat

      EndGet

      Set(value AsString)

          _AppCat = value

      EndSet

   EndProperty

EndClass

     

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

      ReportViewer1.LocalReport.DataSources.Clear()

      Dim thePrjData AsNew Microsoft.Reporting.WinForms.ReportDataSource("Proj",ProjInfo.GetListOfProjInfo())

      ReportViewer1.LocalReport.DataSources.Add(thePrjData)

      Dim theSDCData AsNew Microsoft.Reporting.WinForms.ReportDataSource("SDCat",SDCinfo.GetListOfSDCinfo())

      ReportViewer1.LocalReport.DataSources.Add(theSDCData)

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

      'Me.ReportViewer1.RefreshReport()

   EndSub

EndClass


Dan


Dan

Microsoft.Reporting.WebForms - ReportViewer set displaymode print layout

$
0
0

Hi guys...

I've beenlooking for somethinglike set displaymode print layout from WinForms to the WebForms.

In WinForms i can use this:

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

But not found the same function in WebForms.

Anyone knows how to do that?

Report Viewer IiF statemant

$
0
0

i want to use IIf statement this way :

i have A1 column 

iif(Fields!a1.Value =nothing , "00:00" , Fields!a1.Value.substring(0,1))
this way to
=IIF(isnothing(Fields!a1.Value), "00:00", Fields!a1.Value.substring(0,1))

when a1 is empty, i am getting error. other way i am getting  this value "Fields!a1.Value.substring(0,1)".  

how to resolve this error? 

i have tried "Fields!a1.Value < "0"" or  "Fields!a1.Value > nothing"  "Fields!a1.Value.tostring  and many other things but when value is null (A1 is empty )  i am getting error in reportviewer A1 column 

thanks


passing parameter in report viewer using c# Visual Studio

$
0
0
Solve using c#.

Hello microsoft, when i try to use report viewer in asp.net web app,
I am unable to pass parameter from textbox.

I have added Dataset and Report.
In dataset i have added my table adaper

In which query "Select * from student where id=@id"
In preview itzz working fine.

In report page i have added all the required field.
Now my problem is iam unable pass parameters from my web.aspx page.
In my web.aspx page i have a textbox, a button and a Reportviewer control.. i am waiting for your solution.

Remove Textbox names from CSV export

$
0
0

Export only data regions, table1_Details_Group, or DataSet fields to CSV

Hi Team,
I am trying to export ONLY table1_Details_Group, or data fields, or DataSet fields to CSV or Excel.  I need to strip report header, column headers, and report footers.  We need headers and footers in PDF and Word. However, our end users need to import many of these reports into third party systems.  I have found that I can set DataElementOutPut to NoOutput, however, the CSV files still contains the text box names of the data rows.  Why does it export the text box name and the data?  How do I supress that?

Example:
Textbox1, Textbox2, Textbox3
Andy,Adams,Analyst
Bobby,Wilson,Programmer
AnotherName,AnotherLastName,Manager


I have read about creating new rendering extensions but I'm not sure if this is the right answer, and if it is, what strategy should I use to implement the solution.  I thought about streaming the XML and stripping headers or rendering to Excel and doing the same thing.

I have also thought of exploring capturing the DataSet fields or returned dataset from the stored procedure.  But I haven't looked in to that yet.

What I want to avoid is writing custom code for each of the 160+ reports.

Any ideas?  Is there an easy way to strip headers and footers from CSV?

Thanks!


bind manual dataset to report vb.net 2.0

$
0
0
     

i created a data set manually and created a datatable pricelist. The reportviewr is in a usercontrol ucReport, which is loaded inside a panel at run tyime

i have created the report i want to bound its data to by doing this
Dim oRpt As New ucReport

Dim ds As DataSet = GetDataset("prices")
     Dim rds As ReportDataSource = New ReportDataSource("ReportDataSet", ds.Tables(0))
                With oRpt.rvMain.LocalReport
                    .ReportPath = "Reports\pricelist.rdlc"
                    .DataSources.Clear()
                    .DataSources.Add(rds)
                    .Refresh()
                End With



ths getdata source looks like

Private Function GetDataset(ByVal sName As String) As DataSet

        Dim conn As New SQLiteConnection("Data Source=" & dbPath)
        conn.Open()
        Dim sql As String = Nothing
        Select Case sName.ToLower
            Case "prices"
                sql = "Select * FROM prices_view"
        End Select

        Dim ad As SQLiteDataAdapter = New SQLiteDataAdapter(sql, conn)
        Dim ds As DataSet = New DataSet
        ad.Fill(ds)
        Return ds
   End Function


When i run the report, i don't get anything in the report viewer

    

Do you know we will see our dead loved ones again? John 5:25

Microsoft Web Services enhancement

$
0
0

Hi All,

Could you kindly let me know whether the Microsoft Web Services Enhancements application is compatble on Win 7 64Bit. If this is not compatible please provide me the replacement application with same functionality for this.

with regards,

Krishna

Report Viewer 2012 and Vista Service Pack 2

$
0
0

Hello, I have a clickonce application that has a dependency on Report Viewer 2012. I have had a ton of trouble with this package.

I also had to take a dependency on the SQLSysCLRTypes package. I just took a dependency on the x86 package as that is what the application is compiled to. However, the link in the package in the bootstrapper points to the wrong url! I had to open: C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\Bootstrapper\Packages\SqlClrTypes_x86\en\package.xml and change the url to point to: http://go.microsoft.com/fwlink/?LinkID=239643

I'm pretty sure that solved the SQLSysCLRTypes problem I was having.

Now, when I try to install the application on a Windows Vista SP2 machine, after the prerequisites download, I get the message "Setup has detected that the publisher of file 'C:\Users\Admin\AppData\Local\Temp\VSD4746.tmp\ReportViewer\ReportViewer.msi' cannot be verified. Click OK to retry the download, or Cancel to exit setup."

This only seems to happen on Vista. Windows 7 is a little more reliable, but has a failure every now and again.

I should also mention that when I download the ReportViewer.msi directly from Internet Explorer, (fromhttp://www.microsoft.com/en-us/download/details.aspx?id=35747 ), IE states that "ReportViewer.msi was reported as unsafe."

Anyway, does anyone know the solution to this? I've spent days (off and on) on this problem and I'm not making any progress.

Thanks in advance.

-Jason




Viewing all 519 articles
Browse latest View live


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