Cannot render line height in RDLC Report when print or Export PDF
1.Create a web application for test (vs2010). 2.drag and drop a ReportViewer control in to page. 3.in rdlc design file put a Text Box control from report Toolbox. 4.input "how are you" with 3 lines. by default fontname:Arial font size 10pt 5.select textbox and in property window, change"line height" property to 20pt 6.run the web page ,that in the html viewer ,this is ok, but when printing or export to pdf, that's not good, no line height.? please give me some tip. thanks in advanced.!!!!
April 27th, 2011 3:41am

Hi wangconghui, Based on your description, I can also reproduce the scenario in Visual Studio 2010. When preview the report, the line height can be showed correctly. Then, after exported the report to PDF, Word and Excel format, the line height cannot be showed in those file formats. Based on my research, the LineHeight property is only supported in HTML output(since there is direct support for LineHeight in HTML). Please refer to the similar thread below: http://social.msdn.microsoft.com/Forums/en/sqlreportingservices/thread/5bb8d665-d586-48d3-80f0-e62d1d688712 In order to set the line spacing in PDF format or other formats, we can select the contents in the textbox and set the SpaceAfter or SpaceBefore property to control the line spacing. The contents line spacing in the text box is same with the line spacing in the PDF format or other file formats. If you have any question, please feel free to ask. Regards, Bin Long
Free Windows Admin Tool Kit Click here and download it now
April 29th, 2011 4:50am

thanks for you detail reply. I will try this method tonight, and hope everything goes well. thanks again.
April 29th, 2011 4:57am

Hi wangconghui, Based on your description, I can also reproduce the scenario in Visual Studio 2010. When preview the report, the line height can be showed correctly. Then, after exported the report to PDF, Word and Excel format, the line height cannot be showed in those file formats. Based on my research, the LineHeight property is only supported in HTML output(since there is direct support for LineHeight in HTML). Please refer to the similar thread below: http://social.msdn.microsoft.com/Forums/en/sqlreportingservices/thread/5bb8d665-d586-48d3-80f0-e62d1d688712 In order to set the line spacing in PDF format or other formats, we can select the contents in the textbox and set the SpaceAfter or SpaceBefore property to control the line spacing. The contents line spacing in the text box is same with the line spacing in the PDF format or other file formats. If you have any question, please feel free to ask. Regards, Bin Long Thanks agagin, I just used the method that you told me, but I find in my report ,that's all text is dynamic, suchas "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" text in textbox will be wraped automatic, but SpaceAfter & SpaceBefore property no effect in this case, because there is 1 line. if I input some static text with enter new line such as "AAAAAA AAAAAA AAAA" SpaceAfter & SpaceBefore works well. please help me , I'm thinking of inviting you to dinner in beijing :)
Free Windows Admin Tool Kit Click here and download it now
April 29th, 2011 9:13am

what a fucking bug, fucking customer,shit!
May 26th, 2011 12:32pm

Hi wangconghui, Sorry for my delay response. Since this is a product limitation of Reporting Services. It is my pleasure to help you to reflect this situation to the proper department. You can also submit feedback at https://connect.microsoft.com/SQLServer/. Your feedback is valuable for us to improve our products and increase the level of service provided. We appreciate for your understanding. Thanks, Bin Long
Free Windows Admin Tool Kit Click here and download it now
May 27th, 2011 5:25am

thanks for you response I had to using iTextSharp to make the pdf/print report... please tell me if this bug fixed, wangconghui@gmail.com thanks again.
June 6th, 2011 1:26am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics