Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

SharePoint 2010 with Content Editor and PDF File

Posted on 2015-01-27
2
Medium Priority
?
387 Views
Last Modified: 2015-01-28
I am trying to add two web parts to a page:
Content Editor with the html to display a PDF file from a document library
InfoPath Web Part to Update a related list when the user opens the page and clicks submit.

Problem 1: The PDF File doesn't open. Stuck saying "Initializing".   I will include the snippet I used.
Problem 2:  How to get the file name of the PDF file off of the Content Editor html fragment and use that as a parameter for updating the SharePoint List when the user does a submit from the InfoPath Form with the pages InfoPath web part.

The snippet for the PDF file follow:
<object>
        <embed src="/SiteAssets/PM2_manual.pdf" height="850" width="850"  type="application/pdf"></embed>
</object>
0
Comment
Question by:Howard Bash
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
colly92002 earned 2000 total points
ID: 40575399
Try using a javascript renederer such as http://pdfobject.com/
That is pretty old and possibly not modern standards compliant, so alternatively use one of the many jquery versions:
http://www.jqueryrain.com/2012/09/best-jquery-pdf-viewer-plugin-examples/
0
 
LVL 1

Author Comment

by:Howard Bash
ID: 40575437
Any thoughts about how to get the filename of the PDF file from the containing web part within the info path web part?

Thanks (that 's "part 2" of the question).
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

618 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