• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1064
  • Last Modified:

Problem Implementing RS2008 export extension for "PDF Landscape"

In an attempt to offer a "one-off" of Acrobat (PDF) file export option, I added an Extension in
RSReportServer.config.  The entry I "one-off"d (used as a template) appears below:
============================================================
<Extension Name="PDF" Type="Microsoft.ReportingServices.Rendering.ImageRenderer.PDFRenderer,Microsoft.ReportingServices.ImageRendering"/>
=========================================
I updated RSReportServer.config with lines below:
=========================================
<Extension Name="pdf" Type="Microsoft.ReportingServices.Rendering.ImageRenderer.PDFRenderer,Microsoft.ReportingServices.ImageRendering">
        <OverrideNames>
            <Name Language="en-US">Acrobat (PDF) file LANDSCAPE</Name>
        </OverrideNames>
        <Configuration>
            <DeviceInfo>
                <OutputFormat>PDF</OutputFormat>
                <PageWidth>10.5in</PageWidth>
                <PageHeight>8.0in</PageHeight>
            </DeviceInfo>
        </Configuration>
</Extension Name="pdf">
=======================================================================
The "one-offed" landscape item appears in the Report Viewer export drop down list.
BUT .... clicking export for this "one-off"'d option results in a format parameter not found error:
======================================================================
Server Error in '/RS_PWH' Application.
--------------------------------------------------------------------------------
Value cannot be null.
Parameter name: format
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.Exception: Value cannot be null.
Parameter name: format

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:

[Exception: Value cannot be null.
Parameter name: format]

[Exception: An error occurred during rendering of the report.]

[Exception: An error occurred during rendering of the report.]
   Microsoft.Reporting.WebForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension) +520
   Microsoft.Reporting.WebForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension) +937
   Microsoft.Reporting.WebForms.ServerReport.Render(String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension) +28
   Microsoft.Reporting.WebForms.ServerReport.Render(String format, String deviceInfo, NameValueCollection urlAccessParameters, String& mimeType, String& fileNameExtension) +88
   Microsoft.Reporting.WebForms.ServerReportControlSource.RenderReport(String format, String deviceInfo, NameValueCollection additionalParams, String& mimeType, String& fileExtension) +123
   Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response) +143
   Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +152
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
=======================================================

What am I missing?
0
margueritethomison
Asked:
margueritethomison
1 Solution
 
planoczCommented:
Just continue to run it in a RDL view layout (which should also be in landscape) then when you export it to PDF, PDF will automatically read it and it will be landscape, You can export directly to PDF viewer thru the RDL viewer.
0
 
margueritethomisonAuthor Commented:
Thanks for that solution which WORKS!

The SSRS 2008 reports I'm concerned with are produced based on dynamically based on selected parameters which result in 3 -  33 column - wide reports.

I am new with SSRS.

The custom extension option looked like a possible way to avoid coding multiple styles of the same report and coding to display the "as near as possible to appropriate" .pdf report output option.....
excel output option(s).... word output option(s).  Minimize development by providing export flexibility.....

Grateful!
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now