We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

sfDataGrid Print problem.

Thread ID:

Created:

Updated:

Platform:

Replies:

124813 Jun 30,2016 11:53 PM Jul 4,2016 08:09 AM WPF 2
loading
Tags: SfDataGrid
ray
Asked On June 30, 2016 11:53 PM

As in Attach file,i have a datagrid with stackedheader-Grid.png.
my code:
dgOutStorage.PrintSettings = new PrintSettings();
            dgOutStorage.PrintSettings.PrintManagerBase = new CustomPrintManager(this.dgOutStorage);
            dgOutStorage.PrintSettings.AllowPrintStyles = false;
            dgOutStorage.PrintSettings.PrintScaleOption = PrintScaleOptions.FitAllColumnsonOnePage;
            dgOutStorage.PrintSettings.PrintPageOrientation = PrintOrientation.Portrait;
            DataTemplate cardLayout = new DataTemplate();
            FrameworkElementFactory cardHolder = new FrameworkElementFactory(typeof(TextBlock));
            cardHolder.SetValue(TextBlock.TextProperty, title);
            cardHolder.SetValue(TextBlock.FontSizeProperty, 20.0);
            cardHolder.SetValue(TextBlock.HorizontalAlignmentProperty, HorizontalAlignment.Center);
            cardLayout.VisualTree = cardHolder;
            dgOutStorage.PrintSettings.PrintPageHeaderTemplate = cardLayout;
            dgOutStorage.PrintSettings.PrintPageHeaderHeight = 30;
            dgOutStorage.PrintSettings.PrintPageMargin = new Thickness(2.5, 2.5, 2.5, 2.5);
            dgOutStorage.Print();
1.Print result like 1.oxps,stackheader not print.
2.PrintPageMargin not working.

Attachment: Desktop_cd193d29.7z

ray
Replied On July 2, 2016 01:18 AM

I also try to exporttopdf  then print .As Chinese charactor in sfdatagrid row,It will miss Chinese charactor when convert to pdf

Elavarasan M [Syncfusion]
Replied On July 4, 2016 08:09 AM

Hi Ray, 
 
We have created the support incident under your account to track the status of this SfDataGrid printing requirement. Please log on to our support website to check for further updates. 
 
Regards,
Elavarasan M

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;