• SSRS2008报表导出到EXCEL正常,打印后折行。


    SSRS2008报表导出到EXCEL正常,打印后折行。简单解决方案是直接调整SIZE和Margin。

    微软发布的SQL SERVER 2008 SP2 宣称已经修复此问题,下面是MS原帖,再下面是这之前喷微软的口水贴。

    MS原帖:  

    FIX: The margins are not retained in a report when the report is exported to Excel on a server that is running SQL Server 2008, and then you preview the report in Excel

     Consider the following scenario:

    • You run Report Builder on a server that is running Microsoft SQL Server 2008.
    • In Report Properties, you set the margins of the report to 0.25 inches, and then you save the report.
    • You run the report, and then you export the report to Microsoft Excel.

    In this scenario, when you click Print Preview in Microsoft Excel and then show the margins, the margins that you set are not retained. For example, the top and bottom margins are set to 1 inch, and the right and left margins are set to 0.75 inches.

    RESOLUTION

    Service pack information

    To resolve this problem, obtain the latest service pack for SQL Server 2008. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
    968382  How to obtain the latest service pack for SQL Server 2008

    STATUS

    Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

    This problem was first corrected in SQL Server 2008 Service Pack 2 for SQL Server 2008.

    MORE INFORMATION

    For more information about Report Builder in SQL Server 2008, see the following topic on the Microsoft TechNet website:

    APPLIES TO
    Keywords: 
    kbinfo kbexpertiseinter kbprb kbbug kbtshoot kbsurveynew KB2216480 

    Reporting Services 2008 Export To Excel Margins by DJSpellman

    Closed
    as Fixed 

    32
    0
    Register
    to vote
    Type:Bug
    ID:487628
    Opened:9/2/2009 11:08:33 AM
    Access Restriction:Public
    0
    Workaround(s)
    21
    User(s) can reproduce this bug
    When a report is exported to Excel the report margins are not kept for the printing of the worksheet. It appears that that the margins default to one inch.
    Details (expand)
    Register to post a comment.
    Posted by Microsoft on 7/21/2010 at 6:51 PM
    FYI, the fix for Reporting Services 2008 is included in the CTP for PCU2, available for download here: http://go.microsoft.com/fwlink/?LinkId=196550

    Thank you,
    Reporting Services Team
    Posted by sarah_bear on 5/19/2010 at 4:46 AM
    Suppose I shouldn't be surprised that yet another thing that worked in 2005 is broken in 2008. Does Mircosoft actually do any testing before they release their products?! Anyway, is there a fix for this yet other than getting R2, which is a no-go for my company?
    Posted by SSRS_DEV on 4/16/2010 at 8:34 AM
    If this just has to deal with the Excel renderer, then why can't we just get a bug fix patch? 

    It would save a lot of headache and ticked off users if we can just patch the SSRS server than waiting for another SP or installation of R2....
    Posted by Microsoft on 4/14/2010 at 5:37 PM
    We consider releasing the fix as a part of the next service pack for SQL Server 2008 later this year.

    Thank you, 
    Krisztian B
    Posted by SSRS_DEV on 3/8/2010 at 9:55 AM
    Crawfy,

    That is a good point I forgot to mention in my earlier post as well. I too am starting to get calls/emails about how some reports when exporting to Excel loose the word wrap so to speak.

    I know there was a fix or two done with the latest update package to SP2, I think it was update6 that fixed some of the report problems but the Excel margin is the BIG one I am running into now with my 2000+ users.
    Posted by jcrawfo2 on 3/7/2010 at 9:18 PM
    I also have the same issue with our RSReports ignoring the paging on export to excel, as all of our reports are customised with 1cm margins to give the greatest possible real estate to render the reports.

    It also appears the rendered excel report dimensions are different. Reports that fit when exported to excel in 2005, no longer fit when I manually set the margins on the exported report as they should be. So even if Microsoft fix this bug, I am still going to be forced to test every report and edit the width of every report by a few pixels to make them fit on a single page. 

    Please Microsoft, do some testing and make it so reports exported to excel are backwards compatible with 2005, down to the pixel, as it impacts your customers.

    Also related to this, export to excel does not size the height of the rows correctly, two scenarios.
    1. In our reports we have columns where data wraps. In rows where content is wrapped the height of the rows are insufficient to render all the text and the final line of text is only half visible.
    2. In the header of our reports we have a text box which displays the title of the report in a 20pt font. The height of the row when exported is insufficient to render the title and the bottom half of the title is cut off.

    Our users are now expected to Ctrl-A double click to get the rows to re-size, and then do a print preview and drag the margins around until it fits on the page.

    This has been identified as a "show stopper" and our upgrade to RS2008 has been halted, pending R2. 
    Posted by SSRS_DEV on 2/17/2010 at 7:14 PM
    For those of you needing an answer, we called MS today and there is no hotfix for this. this will come out in R2..

    So if you have a ton of clients that export their spreadsheets and wish to print in SSRS 2008, you have to let them know to manually update their page margins before they print. 1" by .75"

    When they ask you that it worked in the previous version (SSRS 2005), you simply respond its not a bug, its a feature!!

    then tell them MS is working on this and will release it soon.....
    Posted by SSRS_DEV on 2/17/2010 at 8:37 AM
    Is there a hotfix for this? we just upgraded over the weekend and now reports that export to excel are causing a huge problem with my company. Users are getting frustrated. If there is a hotfix, does anyone have a link?
    Posted by Tobi1412 on 2/11/2010 at 6:25 AM
    I also like to have a bugfix without updating to 2008 R2.
    Posted by bittyboy on 1/21/2010 at 12:56 PM
    Will there be a way to update our existing SQL 2008 servers? This was functionality that was in place for 2005 and we should not have to upgrade our SQL Servers to R2 for a bug, right?
    Posted by Microsoft on 1/8/2010 at 1:08 PM
    The problem is fixed in SQL Server 2008 R2 which will be released likely in the first half of 2010.

    Regards,
    Krisztian B
    Posted by Unregistered User on 12/24/2009 at 3:42 AM
    When is this supposed to be fixed? We are migrating reports from 2005 to 2008 en we are encountering this issue.
    Posted by ksminhas on 10/8/2009 at 9:11 AM
    Yes it does not keep the margins After exporting report in to excel
    Posted by trabon123 on 9/22/2009 at 2:36 PM
    This is also true using visual studio 2008.
  • 相关阅读:
    docker-dockerfile构建与部署nginx
    淘宝镜像安装
    css3 中的变量 var 的使用
    CSS样式清除
    css 样式初始化(rem兼容)
    canvas截屏网页为图片下载到本地-html2canvas.js
    移除JSON对象中的某个属性
    js 常用方法集合(持续更新)
    小程序获取上个页面vm对象 解决百度小程序返回上一页不更新onShow更新(适用于uni-app)
    小程序 请求Promise简单封装
  • 原文地址:https://www.cnblogs.com/anorthwolf/p/1905372.html
Copyright © 2020-2023  润新知