I want to display the word document in the crystal report using c#.

Posted on 2011-10-14
Last Modified: 2012-06-21
I want to display the word document in the crystal report using c#.
Question by:davinder101
    LVL 77

    Expert Comment

    I don't know the answer to your Q - I don't do C#.

    But you can only display the first page of a Word document in a report (in an OLEObject) so if you were hoping to do more than that then you may have to look for a different solution.

    Author Comment

    ok, so how can we display the first page through C#?

    Please suggest if there is any other alternate solution.
    LVL 100

    Accepted Solution

    Are you trying to change the document being shown based on something in the data?
    I don't believe that is possible.

    To show a document
    Open the report
    Add an OLE object
    Size it as appropriate
    RIght click it
    Choose FORMAT
    Set the properties to the file


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
    This collection of functions covers all the normal rounding methods of just about any numeric value.
    The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
    The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now