Printing with DocIO UWP
Hi Romane,
Thank you for using Syncfusion products.
You can use SfRichTextBoxAdv control to load Word documents. Using GetPageAsImageAsync() method, you can retrieve the page in SfRichTextBoxAdv as BitmapImage by specifying the page number. You can then print these bitmap images using PrintManager. We have prepared a sample to demonstrate the same. Please do find the sample from below link.
Sample Link:
http://www.syncfusion.com/downloads/support/forum/121264/ze/SfRichTextBoxAdv_UWP_Print474028334.zip
Please let us know if you have any other queries.
Regards,
Sarath
Please find the modified sample to illustrate loading word documents into SfRichTextBoxAdv control and printing contents from the following link.
Sample Link:
Sample
If you have installed Essential Studio for Universal Windows in your machine, you can refer our Syncfusion UWP assemblies from following location.
Assembly Reference:
$system drive: \Program Files\Syncfusion\Essential Studio\version \Assemblies for Universal Windows\10.0\
Eg:
C:\Program Files\Syncfusion\Essential Studio\13.3.0.7 \Assemblies for Universal Windows\10.0\
If the problem still persists, please share us the input document so that we can investigate on it further and provide you with proper solution.
Regards,
Arumuga Perumal S.
C:\Program Files (x86)\Syncfusion\Essential Studio\13.3.0.7\Universal Windows\10.0\SDK\References\CommonConfiguration\neutral
C:\Program Files\Syncfusion\Essential Studio\13.3.0.7 \Assemblies for Universal Windows\10.0\
Thank you for your update.
We are glad to hear that the sample is working fine at your end.
Regarding “Query 1”:
At this moment, there is no direct support for printing contents from SfRichTextBoxAdv control in Universal Windows Platform and printing is achieved only by BitmapImage of pages in SfRichTextBoxAdv control. Direct printing of contents will enhance the image quality. We have already logged this requirement as a feature request and this will be implemented in our next Essential Studio main release 2015 Volume 4. We request to check our website periodically for feature related updates.
Regarding “Query 2, 3 & 4”:
It is mandatory to show print preview and it is not possible to print directly without prompting Print Preview UI in Universal Windows apps. For more information, kindly refer the MSDN forum from following link.
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/fe210048-e463-408d-8351-de0cd1d1cf70/uwpprinting-without-preview?forum=wpdevelop
Regards,
Arumuga Perumal S.
Thank you for contacting Syncfusion support
Currently, our Syncfusion XlsIO library don’t have support for Excel to PDF conversion in UWP platform. We have added it to our feature request list and it will be implemented in any of our upcoming releases. However, we have created a sample to convert an Excel file into PDF in UWP platform using web services which can be downloaded from the below link.
Excel to PDF Sample Link: http://www.syncfusion.com/downloads/support/directtrac/general/ze/ExcelToPDF-42963853
We request you to host the service from your side to convert Excel document into PDF in UWP platform and the web service sample can be download from the below link.
Web Service Sample Link: http://www.syncfusion.com/downloads/support/directtrac/general/ze/WebServices1853215665
Regards,
Arumuga Perumal S.
Attachment: Doc_ca334606.rar
|
|
Thank you for your update.
In our SfRichtTextBoxAdv control we have provided support for built in printing and PageLayout for Mobile devices. Kindly update to latest version of Essential Studio version 15.2.0.43. It is available for download under the following link.
https://www.syncfusion.com/forums/130773/essential-studio-2017-volume-2-service-pack-release-v15-2-0-43-available-for-download
Please find the release notes from the following link:
https://help.syncfusion.com/uwp/release-notes/v15.2.0.40?type=all#sfrichtextboxadv
We have prepared a sample to demonstrate the built-in printing support using the command in SfRichTextBoxAdv control. Please find the sample from the below link:
Sample link:
Sample.zip.
API reference link for PrintDocumentCommand: https://help.syncfusion.com/cr/cref_files/uwp/sfrichtextboxadv/frlrfSyncfusionUIXamlRichTextBoxAdvSfRichTextBoxAdvClassPrintDocumentCommandTopic.html
Note: The print support works properly from Windows 10 Anniversary Edition (10.0; Build: 14393). In the previous editions, there is a known issue with content misalignment In UWP PrintManger. Kindly refer the MSDN forum from following link.
MSDN link:
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/79b55ad0-9479-4d99-92c2-58b79480849a/uwp-problems-with-printing?forum=wpdevelop
Regards,
Venkatesan M.
Thank you for your update.
Please let us know if you require any further assistance. We will be happy to assist you.
Regards,
Venkatesan M.
Hi,
I just wanted to know if it was possible to do the same ( print word document ) but with an Excel document ?
I know that SfRichTextBoxAdv can't open Excel document but maybe an other control could and would allow me to print it ?
Regards,
Charles
Thank you for your update.
Our SfSpreadsheet control allows you to view/edit the excel documents. At present our SfSpreadSheet control does not have printing support. We have already logged this requirement as feature request. We will implement these features in any of our forthcoming releases. We usually have a timeframe of at least three months between releases. The feature implementation would also greatly depend on the factors like product design, code compatibility and complexity. We request you to visit our website periodically for feature related updates.
Regards,
Venkatesan M.
- 18 Replies
- 6 Participants
-
RD Romane Donnet
- Nov 24, 2015 04:19 PM UTC
- Jul 5, 2017 01:13 PM UTC