PDF Viewer?

4 posts, 0 answers
  1. Edward Sudit
    Edward Sudit avatar
    30 posts
    Member since:
    Aug 2012

    Posted 18 Apr 2013 Link to this post

    Is there an ASP.NET Telerik control that can be used as a PDF Viewer on a web page?  I tried the RadBinaryImage control, but unless there is a property that I am not setting, it is not working.

    Thanks.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 18 Apr 2013 Link to this post

    Hi Edward,

    There is no such control available in Telerik RadControls for ASP.NET AJAX. One suggestion is, If you want to display a PDF file, then you can use a RadWindow as shown below.

    ASPX:
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" Width="600px" Height="600px">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    <telerik:RadButton ID="RadButton1" runat="server" Text="Open PDF" AutoPostBack="false"
        OnClientClicked="openPdf">

    JavaScript:
    <script type="text/javascript">
        function openPdf(sender, args) {
            window.radopen("FileName.pdf", "RadWindow1");
        }
    </script>

    Thanks,
    Princy.
  3. Arron
    Arron avatar
    22 posts
    Member since:
    Apr 2013

    Posted 17 Jun 2013 Link to this post

    I'm looking for an ASP.NET Telerik control that can be used as a PDF Viewer on a web page, too.
    But it seems that Telerik doesn't have one as well as a barcode generator.
    I used to view PDF on the web with the free trial of an PDF viewer SDK online.
    It works well.But I wish Telerik will offer such kinds of necessary add-ons oneday.



    Best regards,
    Arron
  4. Frank
    Frank avatar
    2 posts
    Member since:
    Oct 2012

    Posted 24 Oct 2013 Link to this post

    You can use the RadSplitter to view a PDF like this:
     
                       <telerik:RadSplitter ID="Radsplitter6" runat="server" Orientation="Horizontal">
                            <telerik:RadPane ID="Radpane11" runat="server" Height="400" Width="350" ContentUrl="yourdocument.pdf">       
                            </telerik:RadPane> 
                       </telerik:RadSplitter>
               
    You can also program the RadPane ContentUrl on the server side. 


    Hope this helps.
Back to Top