Меню Рубрики

Установка microsoft report viewer

Начало работы с интеграцией служб Reporting Services с помощью элементов управления средства просмотра отчетов Integrating Reporting Services Using the Report Viewer Controls — Get Started

Элементы управления средства просмотра отчетов можно использовать для интеграции отчетов RDL Reporting Services в приложения WebForms и WinForms. The Report Viewer controls can be used to integrate Reporting Services RDL reports into WebForms and WinForms apps. Дополнительные сведения о последних обновлениях см. в статье с описанием изменений. For detailed information about recent updates see the changelog.

Добавление элемента управления средства просмотра отчетов в новый веб-проект Adding the Report Viewer control to a new web project

Создайте новый пустой веб-сайт ASP.NET или откройте существующий проект ASP.NET. Create a new ASP.NET Empty Web Site or open an existing ASP.NET project.

Установите пакет NuGet элемента управления средства просмотра отчетов с помощью консоли диспетчера пакетов NuGet. Install the Report Viewer control NuGet package via the NuGet package manager console.

Добавьте в проект новую ASPX-страницу и зарегистрируйте сборку элемента управления средства просмотра отчетов для использования на странице. Add a new .aspx page to the project and register the Report Viewer control assembly for use within the page.

Добавьте на страницу ScriptManagerControl. Add a ScriptManagerControl to the page.

Добавьте на страницу элемент управления средства просмотра отчетов. Add the Report Viewer control to the page. Приведенный ниже фрагмент кода можно изменить для ссылки на отчет, размещенный на удаленном сервере отчетов. The snippet below can be updated to reference a report hosted on a remote report server.

Итоговая страница должна иметь следующий вид: The final page should look like the following.

Обновление имеющегося проекта для использования элемента управления средства просмотра отчетов Updating an existing project to use the Report Viewer control

Обязательно обновите все ссылки на сборки до версии 15.0.0.0, в том числе файл web.config проекта и все ASPX-страницы со ссылками на элемент управления «Средство просмотра». Make sure to update any assembly references to version 15.0.0.0, including the project’s web.config and all .aspx pages that reference the viewer control.

Пример изменений web.config Sample web.config changes

Пример ASPX Sample .aspx

Добавление элемента управления средства просмотра отчетов в новый веб-проект Windows Forms Adding the Report Viewer control to a new Windows Forms project

Создайте новое приложение Windows Forms или откройте существующий проект. Create a new Windows Forms Application or open an existing project.

Установите пакет NuGet элемента управления средства просмотра отчетов с помощью консоли диспетчера пакетов NuGet. Install the Report Viewer control NuGet package via the NuGet package manager console.

Добавьте новый элемент управления из кода или добавьте элемент управления на панель элементов. Add a new control from code or add the control to the toolbox.

Способы настройки 100 % высоты для элемента управления средства просмотра отчетов How to set 100% height on the Report Viewer control

При задании значения 100 % для высоты элемента управления «Средство просмотра» необходимо установить для родительского элемента определенную высоту или настроить для всех предков процентное значение высоты. If setting the height of the viewer control to 100% the parent element is required to have a defined height, or all ancestors are required to have percentage heights.

Настройка значения высоты в 100 % для всех предков Setting the height of all the ancestors to 100%

Настройка атрибута высоты родительского элемента Setting the parent’s height attribute

Дополнительные сведения о размерах окна просмотра в процентах см. в разделе Viewport-percentage lengths (Размеры окна просмотра в процентах). For more information about viewport percentage lengths, see Viewport-percentage lengths.

Добавление элемента управления на панель элементов Visual Studio Adding control to Visual Studio toolbar

Элемент управления средства просмотра отчетов теперь поставляется в виде пакета NuGet и больше не отображается на панели элементов Visual Studio по умолчанию. The Report Viewer Control is now shipped as a NuGet package and no longer shows in the Visual Studio toolbox by default. Вы можете добавить этот элемент управления на панель элементов вручную. You can add the control to the toolbox manually.

Читайте также:  Установка ламбо петли на классику

Установите пакет NuGet для WinForms или WebForms, как было упомянуто выше. Install the NuGet package for either the WinForms or WebForms as mentioned above.

Удалите элемент управления средства просмотра отчетов, указанный на панели элементов. Remove the Report Viewer Control that is listed in the toolbox.

Щелкните правой кнопкой мыши где-либо на панели элементов и выберите пункт Выбрать элементы. Right-click in anywhere in the toolbox and then select Choose Items. .

В окне Компоненты .NET Framework щелкните Обзор. On the .NET Framework Components, select Browse.

В установленном пакете NuGet выберите Microsoft.ReportViewer.WinForms.dll или Microsoft.ReportViewer.WebForms.dll. Select the Microsoft.ReportViewer.WinForms.dll or Microsoft.ReportViewer.WebForms.dll from the NuGet package you installed.

Пакет NuGet будет установлен в каталоге решения. The NuGet package will be installed in the solution directory of your project. Путь к DLL будет иметь следующий вид: \packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.\lib\net40 или \packages\Microsoft.ReportingServices.ReportViewerControl.WebForms.\lib\net40 . The path to the dll will be similar to the following: \packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.\lib\net40 or \packages\Microsoft.ReportingServices.ReportViewerControl.WebForms.\lib\net40 .

Новый элемент управления должен появиться на панели элементов. The new control should display within the toolbox. При необходимости его можно переместить на другую вкладку в панели элементов. You can then move it to another tab within the toolbox if you wish.

Распространенные проблемы Common issues

Элемент управления «Средство просмотра» предназначено для современных браузеров. The viewer control is designed for modern browsers. Этот элемент управления может работать некорректно, если браузер отрисовывает страницы в режиме совместимости с IE. The control may not work as expected if the browser renders the page using IE compatibility mode. При работе на сайтах интрасети может потребоваться метатег для переопределения поведения браузера по умолчанию. Intranet sites may require a meta tag to override default browser behavior.

Отзывы Feedback

Если у вас возникли проблемы, сообщите об этом на форумах Reporting Services. Let the team know about issues on the Reporting Services forums.

источник

Integrating Reporting Services Using the Report Viewer Controls — Get Started

The Report Viewer controls can be used to integrate Reporting Services RDL reports into WebForms and WinForms apps. For detailed information about recent updates see the changelog.

Adding the Report Viewer control to a new web project

Create a new ASP.NET Empty Web Site or open an existing ASP.NET project.

Install the Report Viewer control NuGet package via the NuGet package manager console.

Add a new .aspx page to the project and register the Report Viewer control assembly for use within the page.

Add a ScriptManagerControl to the page.

Add the Report Viewer control to the page. The snippet below can be updated to reference a report hosted on a remote report server.

The final page should look like the following.

Updating an existing project to use the Report Viewer control

Make sure to update any assembly references to version 15.0.0.0, including the project’s web.config and all .aspx pages that reference the viewer control.

Sample web.config changes

Sample .aspx

Adding the Report Viewer control to a new Windows Forms project

Create a new Windows Forms Application or open an existing project.

Install the Report Viewer control NuGet package via the NuGet package manager console.

Add a new control from code or add the control to the toolbox.

How to set 100% height on the Report Viewer control

If setting the height of the viewer control to 100% the parent element is required to have a defined height, or all ancestors are required to have percentage heights.

Читайте также:  Установка sql server 2014 eng

Setting the height of all the ancestors to 100%

Setting the parent’s height attribute

For more information about viewport percentage lengths, see Viewport-percentage lengths.

Adding control to Visual Studio toolbar

The Report Viewer Control is now shipped as a NuGet package and no longer shows in the Visual Studio toolbox by default. You can add the control to the toolbox manually.

Install the NuGet package for either the WinForms or WebForms as mentioned above.

Remove the Report Viewer Control that is listed in the toolbox.

Right-click in anywhere in the toolbox and then select Choose Items. .

On the .NET Framework Components, select Browse.

Select the Microsoft.ReportViewer.WinForms.dll or Microsoft.ReportViewer.WebForms.dll from the NuGet package you installed.

The NuGet package will be installed in the solution directory of your project. The path to the dll will be similar to the following: \packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.\lib\net40 or \packages\Microsoft.ReportingServices.ReportViewerControl.WebForms.\lib\net40 .

The new control should display within the toolbox. You can then move it to another tab within the toolbox if you wish.

Common issues

The viewer control is designed for modern browsers. The control may not work as expected if the browser renders the page using IE compatibility mode. Intranet sites may require a meta tag to override default browser behavior.

Feedback

Let the team know about issues on the Reporting Services forums.

источник

Установка microsoft report viewer

Вопрос

After installing WSUS on Windows Server 2012, i did sucessful configuration.

Nevertheless when i try to run oen of teh report it tells me that i need «Microsoft Report Viewer 2008» after downloading i tried to install.

But installation fails with dependencies on .Net Framework 2.0 , which i can’t install without Server Roles and features. but .Net framework 4.5 is already added as server role.

looks like some chicken & egg ?

Ответы

Please perform the steps in the following post.

Все ответы

Please perform the steps in the following post.

Thanks that worked fien with me.

I documented teh WSUS install also for others under

Oh godie. lol totally get it i share the same frustration with you as a new admin. After what I learn in college you will think that Microsoft would have your work ready to install but man. I need so many work around in my environment that is easy to realize why there is so many tech software companies that claim to be the best one time shop stop fro your IT infrastructure that in the end is just not enough.

I feel your pain to a degree, but have to add this little nugget.

This is server software designed with admins in mind, admins that kjnow they need to do their homework before installing mainly to ensure they aren’t going to break stuff but also because what they’re installing hasn’t been treated to the kind of niceness you get with consumer level software which is meant for folks that just want it to work and isn’t mission critical stuff.

Just think in terms of the Linux world, yeah I know you can use the repositories and its made out to be super easy but things dont pan out that way.

MS has to make sure people are being careful as the buck stops with them if they package something up for your server in a ‘hey this just works in any config’ method, which could then break something else you have running, to do this they would have to envisage every single type of server app configuration and all the dependencies, know if one version sits alongside another or overwrites it, etc etc.

Читайте также:  Установка в мягкой кровле проходных элементов

Point I’m making here is on a server level its in your own best interests to know whats going to happen, know whats being installed, know what risks and attack surfaces you expose by installing and know whether what your installing will interfere with any other app/service you have already running. Seems frustrating and I also get to that point but logic wins in the end, complex things are complex, to dumb it down would do us all out of work 🙂

источник

Integrating Reporting Services Using the Report Viewer Controls — Get Started

The Report Viewer controls can be used to integrate Reporting Services RDL reports into WebForms and WinForms apps. For detailed information about recent updates see the changelog.

Adding the Report Viewer control to a new web project

Create a new ASP.NET Empty Web Site or open an existing ASP.NET project.

Install the Report Viewer control NuGet package via the NuGet package manager console.

Add a new .aspx page to the project and register the Report Viewer control assembly for use within the page.

Add a ScriptManagerControl to the page.

Add the Report Viewer control to the page. The snippet below can be updated to reference a report hosted on a remote report server.

The final page should look like the following.

Updating an existing project to use the Report Viewer control

Make sure to update any assembly references to version 15.0.0.0, including the project’s web.config and all .aspx pages that reference the viewer control.

Sample web.config changes

Sample .aspx

Adding the Report Viewer control to a new Windows Forms project

Create a new Windows Forms Application or open an existing project.

Install the Report Viewer control NuGet package via the NuGet package manager console.

Add a new control from code or add the control to the toolbox.

How to set 100% height on the Report Viewer control

If setting the height of the viewer control to 100% the parent element is required to have a defined height, or all ancestors are required to have percentage heights.

Setting the height of all the ancestors to 100%

Setting the parent’s height attribute

For more information about viewport percentage lengths, see Viewport-percentage lengths.

Adding control to Visual Studio toolbar

The Report Viewer Control is now shipped as a NuGet package and no longer shows in the Visual Studio toolbox by default. You can add the control to the toolbox manually.

Install the NuGet package for either the WinForms or WebForms as mentioned above.

Remove the Report Viewer Control that is listed in the toolbox.

Right-click in anywhere in the toolbox and then select Choose Items. .

On the .NET Framework Components, select Browse.

Select the Microsoft.ReportViewer.WinForms.dll or Microsoft.ReportViewer.WebForms.dll from the NuGet package you installed.

The NuGet package will be installed in the solution directory of your project. The path to the dll will be similar to the following: \packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.\lib\net40 or \packages\Microsoft.ReportingServices.ReportViewerControl.WebForms.\lib\net40 .

The new control should display within the toolbox. You can then move it to another tab within the toolbox if you wish.

Common issues

The viewer control is designed for modern browsers. The control may not work as expected if the browser renders the page using IE compatibility mode. Intranet sites may require a meta tag to override default browser behavior.

Feedback

Let the team know about issues on the Reporting Services forums.

источник

Добавить комментарий

Adblock
detector