Solved

RDLC report print layout is different to design.

Posted on 2011-03-16
3
1,875 Views
Last Modified: 2012-05-11
Hi, I'm trying to convert a complex Word document into a RDLC report.

This a going to be an automation of what was previously a paper form.  If you think of the sort of form you had to fill out the last time you tried to borrow money from a bank, you'll have the right idea.

It's essential that my final output - printed or PDF - matches my design.

I'm finding that the layout changes when the report is generated.  

Text boxes that align in design mode, no longer do,
Text boxes that were word-wrapped to multiple lines have printed on one line.
Text boxes that were neatly side-by-side, now over-lap.

Any suggestioins gratefully received.  

I need a way of generating a report from a C#  (VS2010) where my output will match my design (preferably without paying for an expensive licence)
0
Comment
Question by:greep
3 Comments
 
LVL 4

Expert Comment

by:LeDaouk
ID: 35146719
i"m using the attachedcode in the report viewer to generate c:\printout....pdf file and it is working fine with with exact report shown, but is is in VB.net convert it to c#
Private Sub frm_ReportViewer_Shown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shown
        Dim warnings As Warning() = Nothing
        Dim streamids As String() = Nothing
        Dim mimeType As String = Nothing
        Dim encoding As String = Nothing
        Dim extension As String = Nothing
        Dim bytes As Byte()
        Dim FileName As String

        Try

            Dim strFileSize As String = ""
            Dim di As New IO.DirectoryInfo("c:\")
            Dim aryFi As IO.FileInfo() = di.GetFiles("PrintOut*.pdf")
            Dim fi As IO.FileInfo


            For Each fi In aryFi
                fi.Delete()
            Next
        Catch
        End Try

Open in new window

0
 
LVL 27

Accepted Solution

by:
planocz earned 500 total points
ID: 35167664
When you work with PDF rendering as  an output the layout will change.
You have to size the overall report just alittle smaller. Also you have to remove all can grow to equal false and remove any extra white space in your textboxes/cells, etc.
0
 

Author Closing Comment

by:greep
ID: 35198639
Thanks, this would seem to be the case, but I must have output that is pixel-perfect, trying Crystal Reports instead
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In the following article I’ll be discussing and demonstrating several different ways of how images can be put on a report. I’m using SQL Server Reporting Services 2008 R2 CTP, more precisely version 10.50.1352.12, but the methods ex…
Introduction Earlier I wrote an article about the new lookup functions (http://www.experts-exchange.com/A_3433.html) that ship with SQL Server 2008 R2.  In this article I’m going to show you another new feature of SSRS 2008 R2, this time in the vis…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question