询问者
Print button in form library

问题
全部回复
-
Hi Ameneh,
I think your real need is to show a print button in the form, not in the form library(It will print the entire form library interface).
A form library is where forms are stored, and it stores forms as files, and when we click on these items, it's actually the equivalent of opening a file.
In this case, we can't add a print button to the form because it doesn't actually use the form, just open the form file.
If the form is published to a list, then we can do this by modifying Display Form:
1.Open the Display Form web part page
2.Add a content editor web part to print the page. Edit the HTML source for the content editor web part to add the print button:
<input type="button" value=" Print this page "onclick="window.print();return false;" />.
Result:
This “SharePoint 2013 - Using SharePoint Designer, InfoPath and Other Customizations” Forum will be migrating to a new home on Microsoft Q&A, please refer to this sticky post for more details.
Best regards
Itch Sun
"SharePoint" forums will be migrating to a new home on Microsoft Q&A !
We invite you to post new questions in the "SharePoint" forums' new home on Microsoft Q&A !
- 已编辑 Itch SunMicrosoft contingent staff 2020年7月16日 3:30
- 已建议为答案 Jerry Xu4869Microsoft contingent staff 2020年7月17日 8:25
2020年7月16日 3:29 -
Thanks Itch Sun,
I designed form library in infopath designer and publish as a “sharepoint form library”.
So I can’t see “(Item) Display Form”.
I know that when we create a form as a form library, it is a file.
I want the print button to be displayed somehow when the user opens the file.
What is your suggestion؟
2020年7月18日 3:55 -
Hi Amenenh,
I'm afraid your need is hard to complete.
We can't modify the behavior after opening files.
The "Ctrl + P" you mentioned is the only way.
Thank you for your understanding.
Best regards
Itch Sun
"SharePoint" forums will be migrating to a new home on Microsoft Q&A !
We invite you to post new questions in the "SharePoint" forums' new home on Microsoft Q&A !
2020年7月20日 1:38 -
Hi,
This thread has been around for a long time. Please remember to mark the replies as answers if they helped. Your action would be helpful to other users who encounter the same issue and read this thread.
Thank you for understanding! If you have any questions, or updates, please feel free to let me know.
Best Regards,
Itch Sun
"SharePoint" forums will be migrating to a new home on Microsoft Q&A !
We invite you to post new questions in the "SharePoint" forums' new home on Microsoft Q&A !
2020年7月22日 9:56