Aug 14, 2015 #1 Adonetok Programmer Jun 5, 2015 7 US I need to create a project to upload pdf file to file server. Before uploading, I want to add a button to preview it. Is there any way to preview it (without adobe reader) or convert pdf to image file and then to view it?
I need to create a project to upload pdf file to file server. Before uploading, I want to add a button to preview it. Is there any way to preview it (without adobe reader) or convert pdf to image file and then to view it?
Aug 14, 2015 #2 jbenson001 Programmer Jan 7, 2004 8,172 US Why don't you want to use Adobe Reader to preview it? Upvote 0 Downvote
Aug 14, 2015 Thread starter #3 Adonetok Programmer Jun 5, 2015 7 US I use fileupload as below. How to complete to view pdf file when clicking btnPreview? <table> <tr> <td class="style3"> <asp:Label ID="Label1" runat="server" Text="Photo upload" /> </td> <td class="style4"> <asp:FileUpload runat="server" ID="PhotoUpload" /> </td> <td class="style4"> <asp:Button runat="server" OnClick="btnPreview_Click" ID="btnPreview" Text="Preview" /> </td> <td class="style1"> <asp:Image runat="server" ID="ImagePreview" Height="164px" Width="125px" /> </td> </tr> </table> Upvote 0 Downvote
I use fileupload as below. How to complete to view pdf file when clicking btnPreview? <table> <tr> <td class="style3"> <asp:Label ID="Label1" runat="server" Text="Photo upload" /> </td> <td class="style4"> <asp:FileUpload runat="server" ID="PhotoUpload" /> </td> <td class="style4"> <asp:Button runat="server" OnClick="btnPreview_Click" ID="btnPreview" Text="Preview" /> </td> <td class="style1"> <asp:Image runat="server" ID="ImagePreview" Height="164px" Width="125px" /> </td> </tr> </table>
Aug 14, 2015 #4 jbenson001 Programmer Jan 7, 2004 8,172 US You will have to preview the file before it is uploaded Upvote 0 Downvote