Sharepoint printing
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
paul_pike
- User
- Posts: 6
- Joined: Mon Jan 11, 2010 8:09 pm
Sharepoint printing
We use sharepoint to run our intranet. What I want to do is have some pdf's out there that I want ppl to click on and print the pdf. Is this possible with the free product with limited coding?
-
Vasyl - PDF-XChange
- Site Admin
- Posts: 2476
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Sharepoint printing
You may use our PDF-XChange Viewer ActiveX SDK for this.
For this you should:
1. Install this SDK package on the client mashine.
2. On your html page(for sharepoint server) you should specify special JavaScript, see attached example.
This example uses our free Viewer Simple ActiveX Control(ProgID: PDFXCviewAx.CoPDFXCpreview).
Also exists full-blown version of Viewer ActiveX Control(ProgID: PDFXCviewAx.CoPDFXCview).
HTH
For this you should:
1. Install this SDK package on the client mashine.
2. On your html page(for sharepoint server) you should specify special JavaScript, see attached example.
This example uses our free Viewer Simple ActiveX Control(ProgID: PDFXCviewAx.CoPDFXCpreview).
Also exists full-blown version of Viewer ActiveX Control(ProgID: PDFXCviewAx.CoPDFXCview).
HTH
You do not have the required permissions to view the files attached to this post.
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
paul_pike
- User
- Posts: 6
- Joined: Mon Jan 11, 2010 8:09 pm
Re: Sharepoint printing
Thanks for your help. That was just what I needed.
-
Chris - PDF-XChange
- Site Admin
- Posts: 798
- Joined: Tue Apr 14, 2009 11:33 pm
Re: Sharepoint printing
Our pleasure, 
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.
Chris Attrell
Tracker Sales & Support North America
http://www.tracker-software.com
Chris Attrell
Tracker Sales & Support North America
http://www.tracker-software.com
-
paul_pike
- User
- Posts: 6
- Joined: Mon Jan 11, 2010 8:09 pm
Re: Sharepoint printing
apparently I am not as competent as others. I am passing the url of the pdf to a a page with the simple viewer control. What is the parameter that I need to set to make the viewer display the pdf. Any examples would help this old fart.
-
Vasyl - PDF-XChange
- Site Admin
- Posts: 2476
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Sharepoint printing
Hi paul.
Look to previously attached file:
and change code:
<OBJECT ID=pdfViewer CLASSID="clsid:DFC89414-E8E7-49c0-B14E-EB61245D3A5D" Width="0" Height="0">
to:
<OBJECT ID=pdfViewer CLASSID="clsid:DFC89414-E8E7-49c0-B14E-EB61245D3A5D" Width="800" Height="600">
- after this you will be able to view opened pdf.
HTH
Look to previously attached file:
and change code:
<OBJECT ID=pdfViewer CLASSID="clsid:DFC89414-E8E7-49c0-B14E-EB61245D3A5D" Width="0" Height="0">
to:
<OBJECT ID=pdfViewer CLASSID="clsid:DFC89414-E8E7-49c0-B14E-EB61245D3A5D" Width="800" Height="600">
- after this you will be able to view opened pdf.
HTH
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
paul_pike
- User
- Posts: 6
- Joined: Mon Jan 11, 2010 8:09 pm
Re: Sharepoint printing
I saw the window size for the control and set that for it to be visible but what I am talking about is passing a parameter to it that will let it know what file to open for viewing. Lets say I have multiple pdf files listed on a page and want them to click on a link that will take them to another page where the viewer is. I need to pass the viewer page a parameter that lets it know what file to open. Either thru the url such as http://viewer.aspx? file=pdffile.pdf or some other means from page to page.
-
Ivan - Tracker Software
- Site Admin
- Posts: 3603
- Joined: Thu Jul 08, 2004 10:36 pm
Re: Sharepoint printing
You generate the HTML page using ASP, so, you can use your URL parameter file as a value of src attribute of the object.
I'm not so familiar with ASP, but it would look something like this:
HTH
I'm not so familiar with ASP, but it would look something like this:
Code: Select all
<OBJECT ID=pdfView CLASSID="clsid:DFC89414-E8E7-49c0-B14E-EB61245D3A5D" Width="800" Height="600">
<PARAM NAME="src" VALUE="<%=file%>">
</OBJECT>
PDF-XChange Co Ltd. (Project Director)
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
-
paul_pike
- User
- Posts: 6
- Joined: Mon Jan 11, 2010 8:09 pm
Re: Sharepoint printing
I am taking it that the value=<%=File%> is a varible and is not the syntax structure for a file location. What is the syntax that would be proper if the varible was named file?
-
paul_pike
- User
- Posts: 6
- Joined: Mon Jan 11, 2010 8:09 pm
Re: Sharepoint printing
Not sure I made it clear on the last post
The variable is called file and is generated by a javascript that reads the ?http://url.com/pdffilename.pdf at the end of the url
This works with whole url to the file
<OBJECT ID=pdfViewer CLASSID="clsid:DFC89414-E8E7-49c0-B14E-EB61245D3A5D" Width="800" Height="600">
<PARAM NAME=src VALUE="http://mytmf/tps/Forms/ORDER%20SETS/PRO ... nsulin.pdf">
</OBJECT>
This doesn't
<OBJECT ID=pdfViewer CLASSID="clsid:DFC89414-E8E7-49c0-B14E-EB61245D3A5D" Width="800" Height="600">
<PARAM NAME="src" VALUE=file>
</OBJECT>
The variable is called file and is generated by a javascript that reads the ?http://url.com/pdffilename.pdf at the end of the url
This works with whole url to the file
<OBJECT ID=pdfViewer CLASSID="clsid:DFC89414-E8E7-49c0-B14E-EB61245D3A5D" Width="800" Height="600">
<PARAM NAME=src VALUE="http://mytmf/tps/Forms/ORDER%20SETS/PRO ... nsulin.pdf">
</OBJECT>
This doesn't
<OBJECT ID=pdfViewer CLASSID="clsid:DFC89414-E8E7-49c0-B14E-EB61245D3A5D" Width="800" Height="600">
<PARAM NAME="src" VALUE=file>
</OBJECT>