Hot answers tagged

11

We usually use print style sheets (<link rel="stylesheet" href="print.css" type="text/css" media="print" />) to do this. Check this guide: http://www.webcredible.co.uk/user-friendly-resources/css/print-stylesheet.shtml I know Muhimbi has a good third party PDF generator, but I havent tried it.


5

As another quick, out of the box idea for a solution, add IsDlg=1 to the URL of your desired List view. It'll use a minimalist masterpage designed for use in Dialogs, but also includes a condensed view of the ribbon.


4

An out of the box approach is to open the document library in Windows Explorer (Actions -> Open with Windows Explorer) select the desired files and right click on them. Then select the print option from the right click menu.


4

To hide it during Print, you can use the following CSS: @media print { div#suiteBar { display: none; } }


3

It is not a good option if you require generic print functionality but SQL Reporting Services is great for building custom reports and it comes with different built in export functions. However it requires some extra work eg. you need to build your reports separately, you need to take care of integration etc. so maybe it is overkill for your requirements. ...


3

If you need to print documents too then there is nothing out of the box, you will probably be limited to doing something custom or getting a third party solution. I found this on codeplex but it only works for 2007. You might be able to use it as a base for a 2010 version though? If it's just list data then you can export it to Excel and print from there. ...


3

The easiest, non intrusive approach i usually recommend for printing, is having a dedicated CSS for this purpose that would hide unwanted navigation and other controls. Add a new CSS link with media="print" and the browser will take care of the rest. <link rel="stylesheet" type="text/css" href="/_layouts/1033/styles/print.css" media="print" />


2

We've used this in 2007, I don't see any mention of an upgrade yet. For web part pages, Christophe has a slick print option in his easy tabs script.


2

One option is to use an alternate CSS to modify the print view of SharePoint pages. By stripping out much of the SharePoint specific stuff, and using special tags in your HTML columns you may be able to load it successfully into word (or just print directly). Some custom options to get to word: ...


2

For printing Lists you can use the http://spprintlistbutton.codeplex.com/.


2

This can be achieved to a certain extent if you, for example, create a list view with appropriately formatted list items and a SharePoint Designer custom action with a javascript like javascript:{ (function() { var myctx = SP.ClientContext.get_current(), selected = SP.ListOperation.Selection.getSelectedItems(myctx), list = []; for (var item in ...


2

You can use JavaScript to print a particular div content <div id="printDiv"> <img src="image.png" /> </div> <input type="button" onclick="printDiv('printDiv')" value="Print" /> function printDiv(divName) { var printContents = document.getElementById(divName).innerHTML; var originalContents = document.body.innerHTML; ...


2

Media print CSS does the trick. @media print { a[href]:after { content: none !important; } }


2

I don't know if this will work for 2007, as 2007 has no printing option. You'll need to use the browser printing options that you can access. You can make a recursive method that calls a new browser to print when opened (same way the browser handles printing). Create a webpart, webpart needs a button... when clicked it needs to scan the webpage to see ...


1

You have to create separate .css for printing. In .css file you have to include @media print. @media print { #DeltaPageStatusBar,#sideNavBox,#DeltaFormDigest,#s4-titlerow,#notificationArea,#s4-ribbonrow,#ms-cui-topBar2,#ms-cui-ribbonTopBars,#suiteBar{ display:none !important; } } In comma separated class name also include the name of ...


1

I had this problem as well a few years ago, and found that setting all of the height of the textboxes in the view to a fixed height (and not auto) resolved the issue.


1

Well, I just spent the last 4 or 5 hours trying to fix this via css and couldn't solve it. I tried fixing it via js, but realized it is InfoPath, and you can't use js in InfoPath pages - even if you put the script in the Master Page. I'm not sure what's the matter with the form; half of it prints via Firefox, but I have two other forms that print just fine ...


1

it is possible to print a section of the page with the help of some javascript Below code sample may be helpful for you to get started: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Untitled Page</title> <script language="javascript" type="text/javascript"> function printDiv(divID) { ...


1

If you are OK with a code based solution, use the Client side object model to connect to your tenant's user profile service and export the data. Here is a good post to do it. You will have to loop through all the user profiles and export the data. You can also make use of the people search data. Query the people search using the rest API to get all the ...


1

I will be accepting Vipul Kelkar's answer as it is correct. I still managed to find an easier solution that is acceptable to us so I want to share it here as an extra answer. Instructions on how to export user information into an excel sheet: First we need to obtain LIST ID and VIEW ID from the user information list that can be found at Site Settings -> ...


1

The PDF Converter for SharePoint adds a lot of PDF Related functionality to SharePoint, including the PDF button you are after. It comes with both SharePoint Designer and Nintex workflow activities as well as a host of other PDF related functionality such as PDF Security, Merging and watermarking. More here. Note that I worked on this product so the usual ...


1

Check out also Smart Print Pro. It can print lists or list items according to user defined templates and export it to PDF Check it out - http://www.infowisesolutions.com/product.aspx?id=SmartPrintPro


1

Alex, Unfortunately the method I am proposing does not work with enhanced rich text fields (e.g., HTML, tables, etc.), but I use it successfully with most other field types. Export the list or library to Excel. Create a data connection to the list or library so that the workbook automatically syncs with list updates when opened. Format the workbook for ...


1

I think the issue was Silverlight. When a task was printed from a silverlight view there used to be lots of junk but if the task was open in HTML (Ctrl + Left Click), the print out was perfect.


1

I did this through a httpmodule that checks for the querystring PrinterFriendly=True and when that is set on any page in SharePoint, it swaps out the masterpage for a printerfriendly one. Here's some of the code: public void Init(HttpApplication context) { context.PreRequestHandlerExecute += new ...


1

If it is a single list/library/calendar AND you are using Outlook, you can import the list/library/calendar into Outlook and print the same format as Outlook calendars: Open SharePoint Calendar in Outlook Open the calendar that you want to print on the SharePoint website. Click "Connect to Outlook" in the "Actions" group on the "Calendar" tab. Click ...


1

An alternate solution is to create another calendar view where you modify the size of the web part to 900 pixels. The calendar grid view now fits on a normal sheet of paper when you check it though the browsers print preview. This is easier for the users to change views and print from the browser instead of going though all the steps to connect to outlook.


1

This PowerShell iterates through a library (folders included), downloads a local copy, then prints to the default printer on the machine it is executed on. Swap $destination, $webURL and $listUrl parameters as needed. ######################## Start Variables ######################## $destination = "C:\\" $webUrl = "https://sharepoint/sites/sitename/" ...


1

Yes. You can create a print view of your form with no color in it. Then when you click a "print" button, it will switch to this view and then they can click their print button or press ctrl+p to print.


1

That does not depend on Sharepoint, but on HTML, Browsers and Security. I assume you are searching for an solution for IE-Browsers only? I would expect that it should be possible with ActiveX, .NET, Silverlight somehow. Perhaps, if you know which printer is it, you could send an AJAX Request to your server which prints than that page. But IMHO it is a ...



Only top voted, non community-wiki answers of a minimum length are eligible