Solved

RDLC report print layout is different to design.

Posted on 2011-03-16
3
1,981 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

How to use Variables  and Custom code in SSRS report and Assembly reference to use compile shared code in SSRS. Its big question for all who are working with SSRS. It is easy to create assembly and refer in SSRS report, still there are some steps…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

726 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