SSRS 보고서를 webforms에 통합 할 수 있습니까? 예를 들어 나를 계속 움직일 수 있습니다.SSRS 보고서를 웹 양식과 통합 할 수 있습니까?
3
A
답변
0
보고서 출력을 특정 파일 형식으로 aspx 페이지로 렌더링하는 방법을 설명하는 기술 자료 문서입니다.
7
은 물론 그 것이다.
당신이 찾고있는 것은 Microsoft.Reporting.WebForms 어셈블리에있는 ReportViewer 컨트롤입니다. 그것은 사람들에게 보고서 매개 변수를 설정하고 보고서를 가져올 수있는 인터페이스를 제공 할 웹 양식에 권한을 부여 할 수 있습니다.
또는 매개 변수를 직접 설정하고 필요한 형식으로 보고서를 출력 할 수 있습니다. 우리는 우리의 응용 프로그램에서 PDF를 출력하는 데 사용합니다.
예를 들어, 우리는 보고서 중 하나에 대한 reportviewer 개체를 설정하고 PDF를 가져온 다음이를 다시 사용자에게 보냅니다. 특정 코드 블록은 웹 처리기입니다.
public void ProcessRequest(HttpContext context)
{
string report = null;
int managerId = -1;
int planId = -1;
GetParametersFromSession(context.Session, out report, out managerId, out planId);
if (report == null || managerId == -1 || planId == -1)
{
return;
}
CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture;
List<ReportParameter> parameters = new List<ReportParameter>();
parameters.Add(new ReportParameter("Prefix", report));
parameters.Add(new ReportParameter("ManagerId", managerId.ToString()));
parameters.Add(new ReportParameter("ActionPlanId", planId.ToString()));
string language = Thread.CurrentThread.CurrentCulture.Name;
language = String.Format("{0}_{1}", language.Substring(0, 2), language.Substring(3, 2).ToLower());
parameters.Add(new ReportParameter("Lang", language));
ReportViewer rv = new ReportViewer();
rv.ProcessingMode = ProcessingMode.Remote;
rv.ServerReport.ReportServerUrl = new Uri(ConfigurationManager.AppSettings["ReportServer"]);
if (ConfigurationManager.AppSettings["DbYear"] == "2007")
{
rv.ServerReport.ReportPath = "/ActionPlanning/Plan";
}
else
{
rv.ServerReport.ReportPath = String.Format("/ActionPlanning{0}/Plan", ConfigurationManager.AppSettings["DbYear"]);
}
rv.ServerReport.SetParameters(parameters);
string mimeType = null;
string encoding = null;
string extension = null;
string[] streamIds = null;
Warning[] warnings = null;
byte[] output = rv.ServerReport.Render("pdf", null, out mimeType, out encoding, out extension, out streamIds, out warnings);
context.Response.ContentType = mimeType;
context.Response.BinaryWrite(output);
}
0
URL 액세스 방법을 사용하지 않으면 매개 변수 선택 항목과 같은 일부 기능이 손실됩니다.
보고서 서버 URL 액세스는 HTML 뷰어 및 보고서 도구 모음의 확장 기능을 지원합니다. SOAP API는이 유형의 렌더링 된 보고서를 지원하지 않습니다. SOAP를 사용하여 보고서를 렌더링하는 경우 자체 보고서 도구 모음을 디자인하고 개발해야합니다.
관련 문제
- 1. SSRS 2008을 MySQL과 통합 할 수 없습니다
- 2. MVC 웹 페이지에 SSRS 보고서를 표시하는 방법
- 3. SSRS 보고서를 Excel로 내보내기
- 4. SSRS 2008 R2 "오류 : 하위 보고서를 표시 할 수 없습니다."
- 5. 도메인 IP에서 SSRS 보고서를 열 수 없습니다.
- 6. WPF에서 SSRS 2010 웹 서비스의 보고서를 어떻게 렌더링 할 수 있습니까?
- 7. SSRS rdl.data 파일을 편집 할 수 있습니까?
- 8. SSRS 2008 - 오류 : 하위 보고서를 표시 할 수 없습니다.
- 9. SSRS 및 Crystal Report에서 생성 된 보고서를 비교할 수 있습니까?
- 10. SSRS 만 비어있는 보고서를 표시합니다.
- 11. 여러 보고서를 어떻게 추가 할 수 있습니까?
- 12. SSRS : 주어진 사용자에 대한 보고서를 찾는 방법?
- 13. 쿼리를 하드 코딩하지 않고 SSRS 보고서를 생성합니다.
- 14. SSRS 보고서에서 appSettings를 참조 할 수 있습니까?
- 15. SSRS 2005 보고서를 Excel 2007로 내보내기
- 16. FaceBook을 XMPP와 어떻게 통합 할 수 있습니까?
- 17. Firefox에서 SSRS 보고서를 끔찍하게 보이지 않게 포맷하십시오.
- 18. PHP를 Javascript에 통합 할 수 있습니까?
- 19. .net 웹 사이트에 Napster를 통합 할 수 있습니까?
- 20. "이메일 푸시"를 웹 앱에 통합 할 수 있습니까?
- 21. asp.net 웹 응용 프로그램에서 GPS 시스템을 통합 할 수 있습니까?
- 22. 구글 플러스 +1을 장고 웹 사이트에 통합 할 수 있습니까?
- 23. 웹 메일을 우리의 응용 프로그램과 통합 할 수 있습니까?
- 24. 양식과 프로세스 버튼을 동시에 클릭하여 활성화 할 수 있습니까?
- 25. OpenGL이 .NET 양식과 함께 작동 할 수 있습니까?
- 26. SSRS 2005를 사용하여 보고서를 내보내는 동안 여분의 빈 페이지가 있습니까?
- 27. 복잡한 웹 양식과 자바 스크립트
- 28. SharePoint 문서 라이브러리에 저장하기 위해 SSRS 보고서를 예약해야합니다.
- 29. URL 라우팅이 ASP.NET 웹 양식과 작동하지 않습니까?
- 30. 클라이언트 사양에없는 파일을 통합 할 수 있습니까?