How can we convert an html file to sharepoint and how can we uplaod and apply the css and jQuery files to the share point site..please help me on this
HTML files cannot be converted to Sharepoint page on Sharepoint2010. if you have styles on the page its advisible to upload the same (incl .css and .js) on one document library and provide the ref on the uploaded HTML page . or else you can use that HTML on an Article page which you create , add a Content editor webpart and paste those HTML scripts with .css and .js reference on that
Hope this helps
Regards
Arjun
Related
I want to convert the HTML to PDF for which I am using this package (https://www.npmjs.com/package/html-pdf).
But in this HTML I am also getting tables and that tables can come in any position in HTML.
So I want to copy the table thead to another page if the table in the HTML exceeds more than 1 page.
Can you please help me on this.
Thanks in advance
You're going to have to modify the CSS of the page to properly handle a printable view.
See also: Repeat table headers in print mode
Try to use Puppeteer to create PDF from HTML
Example from here https://github.com/chuongtrh/html_to_pdf
Or https://github.com/GoogleChrome/puppeteer
I'm trying to insert piece of my html code(which is actually working in my local html file) in SharePoint. But it is not accepting all my tags which are there in the code, for eg: 'style' tag.
Any help is greatly appreciated. :)
Open page for edit. Then from "Media and Content" group choose "Script Editor" web part. And then click Edit Snipper and paste your html code there.
You can also use Content Editor web part and provide link to your html code.
If you want to change style for whole SharePoint you can modify Master Page or providing Alternate CSS for exiting one (this is possible in Central Administration).
How can I give a link to user to download an excel file link on JSP?
my excel will be stored under Web-INF , one folder above my JSP page.
Thanks ahead.
Sample Excel File
I have an infopath form which when submitted generates a pdf file with the same form content(XML) using itextsharp library.
I have a node in infopath form that contains the URL of an image from a sharepoint picture library. How do i embed this image into the pdf file generated? Any solution with xslt modification in my xsl file that i am using for transforming the form XML content?
Thanks for the help!
Someone's actually using InfoPath? First I've heard. Wow. Okay, so there's over 400 questions tagged infopath, but still...
iText's general HTML->PDF functions should convert standard <img src="..."> tags to PDF just fine. If that's not an option for some reason, iText's new XMLWorker may do the trick, released with 5.1.0.
There's even a demo page up: http://www.lowagie.com/xmlworker
We have a SharePoint Document library, where we store html files with links to external files. Samples:
mypicture.jpg.html
mywordfile.docx.html
mypdffile.pdf.html
and so on. Now by default all Files show up with the HTML Icon, referenced in the DOCICON.XML file. Thats of course correct as the .html extension shows, it is a HTML file. But we want the files to have different icons, based on their original file type.
Is there a way to automatically change the Icon
during rendering or
when we save the file to the library (via SharePoint API)?
Any other approachs?
Why not use a little jquery to change the icon during rendering? Each doc in your library should be contained in
<td class="ms-vb-icon"><a tabindex=...><img ... src="/_layouts/images/ichtm.gif"></a></td>
I think you can slurp that into an array, assign a new var that's just the href stripped of path/filename. and .html, and use that to replace htm in the src tag.
Could you not just edit the DOCICON.xml to add the ".jpg.html" and ".docx.html" extensions in?
For a full listing of icon files see all "ic*.gif" files in the TEMPLATE\IMAGES directory under the 12 hive. Unfortunately, this will not solve your problem, but this is where you can change it based on the extension, if you so choose.
Note that a blog I wrote a while back has a different focus, but does discuss where the icons come from: http://wiki.threewill.com/display/is/2007/10/14/External+Link+for+Editing+a+SharePoint+Document.