ASP.NET Convert Excel to PDF

Hi I am developing an ASP.NET, VB.NET   ( developed with VS 2010)  application  . There is a requirement to convert  some excel file to  PDF . The conversion works fine . But when the excel cell has lengthy text , it is not displayed correctly . The  PDF conversion acts more like snapshotting ( what you see is what you get )  

 Is there a way to show the full length of the excel cell when it is converted ?

Sam OZAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Johny BravoCommented:
Are you using any third party component for converting?
Please share your code
Sam OZAuthor Commented:
There is no 3rd party component

    The declarations go as
         Dim paramExportFormat As Excel.XlFixedFormatType = _
        Dim paramExportQuality As Excel.XlFixedFormatQuality = _
        Dim paramOpenAfterPublish As Boolean = False
        Dim paramIncludeDocProps As Boolean = True
        Dim paramIgnorePrintAreas As Boolean = True
        Dim paramFromPage As Object = Type.Missing
        Dim paramToPage As Object = Type.Missing

   The essence of the code is  just single line
            ' Save it in the target format.
            If Not excelWorkbook Is Nothing Then
                excelWorkbook.ExportAsFixedFormat(paramExportFormat, _
                    paramExportFilePath, paramExportQuality, _
                    paramIncludeDocProps, paramIgnorePrintAreas, _
                    paramFromPage, paramToPage, paramOpenAfterPublish)
            End If
Sam OZAuthor Commented:
Hi Experts,

    I  there any possible solution to this ?
NerdsOfTechTechnology ScientistCommented:
You might have to determine the LEN of each cell and then process it specially per column or row depending on how you want the large cell to display as; or, maybe you need to apply column widths, formats, etc. based on the original excel sheet.

This is ASSUMING that this function affords you the ability to control how the PDF is formatted based on these parameters.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.