QUERY |
RESPONSE |
I want to use the control "spreadsheet" to display the contents of the XL-document. I tried to use https://www.syncfusion.com/kb/3028/how-to-print-the-worksheets-in-spreadsheet , but failed because "spreadSheetControl" for missing property "GridProperties". |
This KB is related to SpreadsheetControl(Classic) not to SfSpreadsheet. For Printing in SfSpreadsheet, you can find the samples in the Dashboard in the following link Link: Syncfusion Dashboard->WPF->Run Local Samples->Grids->Spreadsheet ->Miscellaneous->Printing |
How can I display the icon "Print" on "SfSpreadsheetRibbon" and use it? |
We have prepared a sample based on your requirement. A Ribbon Tab “Other” has been created and the options “Print and PrintPreview” has been loaded as Ribbon buttons in the tab. Please find the sample from the below link, |
Please let us know if you have any query.
Regards,
Kanimozhi B
I am trying to configure page pdf document (PdfDoc.PageSettings) before it is loaded into PdfViewer. However, the line: pdfDoc.PageSettings.Orientation = PdfPageOrientation.Landscape; pdfDoc.PageSettings.Size = PdfPageSize.A4; have no effect. So I do not understand how to set margins for printing. |
We are able to reproduce the issue and this issue will be fixed in the upcoming release 2015 Vol 4 |
There is no binding between the print dialog and pdfViewer. What I had not set up in the print dialog is not displayed in PrintPreviewWindow. How can I bind these settings in the print dialog to pdfDoc.PageSettings? |
On loading the document with above page settings in PdfViewerControl and printing the same will print the document as expected. |
I tried to use http://help.syncfusion.com/wpf/pdfviewer/printing-pdf-files to access the PrintDialog but I did not. The class is instantiated PrintDialog there are no properties AllowPrintToFile and Document. |
The Properties AllowPrintToFile and Document are the properties of System.Windows.Forms.PrintDialog. These properties are not available with System.Windows.Controls.PrintDialog. To silent print the loaded document in PdfViewerControl WPF, please use the Print() API as in below code snippet. pdfviewer1.Print(); |
I am trying to configure page pdf document (PdfDoc.PageSettings) before it is loaded into PdfViewer. I do not understand how to set margins for printing. |
The Exception issue we mentioned in the previous update arises only due to the complex formula calculations in the attached excel sheet of Printing Demo. The PageSetup configuration for PDF document will normally work with any other excel files. Hence you can set the orientation, size and margin to the current worksheet of Spreadsheet for printing like the following Code example,
We have also prepared a sample based on your requirement. Please find the link below, Link: http://www.syncfusion.com/downloads/support/forum/120797/ze/CS_(2)517018588 |
Hi Berezkin,
We have checked your query from our side and you can remove right and left indentation in the Pdf document by set the margin to the current worksheet of Spreadsheet. Please refer the following Code example,
Spreadsheet.ActiveSheet.PageSetup.LeftMargin = 0; |
We have also prepared a sample based on your requirement. Please find the below sample link.
Sample
Regards,
Thirumurugan
QUERY |
RESPONSE |
PageSetup" cannot be changed. All settings of this property are made in MS Excel. I'm trying to get the same results when printing in "Excel" and "Spreadsheet". Your test file "Testing Purpose.xlsx"(Margin_setting-287548568) is very well suited to be convinced in the existence of a problem. |
We are able to reproduce the printing issue and this issue will be fixed in the upcoming release 2016 Vol which will be rolled out at the end of March. |
This is not a problem for me personally, but a text editor on your forum defines the word "Syncfusion" as it is written with an error. |
Thank you for bringing this information to our attention. We will look for ways to resolve this problem, so that this will not happen in the future |