This is a migrated thread and some comments may be shown as answers.

PDF Viewer?

3 Answers 332 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Edward Sudit
Top achievements
Rank 1
Edward Sudit asked on 18 Apr 2013, 04:06 PM
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.

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 19 Apr 2013, 04:55 AM
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.
0
Arron
Top achievements
Rank 1
answered on 18 Jun 2013, 04:03 AM
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
0
Frank
Top achievements
Rank 1
answered on 24 Oct 2013, 03:31 PM
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.
Tags
General Discussions
Asked by
Edward Sudit
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Arron
Top achievements
Rank 1
Frank
Top achievements
Rank 1
Share this question
or