Telerik Forums
UI for WPF Forum
1 answer
150 views

Hi,

 

I'm trying to use the RadRichTextBow to perform some printings but after lots of tries, the richtextbowx is still always blank....

I even try to create a new project with only a span with no success....

 

<Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApplication1"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <telerik:RadRichTextBox x:Name="test">
            <telerik:RadDocument>
                <telerik:Section>
                    <telerik:Paragraph>
                        <telerik:Span Text="Span declared in XAML" />
                    </telerik:Paragraph>
                </telerik:Section>
            </telerik:RadDocument>
        </telerik:RadRichTextBox>
    </Grid>
</Window>

Am I doing something really wrong ? Maybe a missing reference...

Lilian
Top achievements
Rank 1
 answered on 07 Dec 2015
2 answers
42 views

Good afternoon,

As the title says, I am looking for a way to add a new pane without navigation to it / having it selected.

I've searched around google and even in the forums and documentation but I haven't found an example or answer (maybe I'm searching for the wrong terms).

Any help will be appreciated.

 

Thanks in advance,

Diogo

Diogo
Top achievements
Rank 1
 answered on 07 Dec 2015
9 answers
204 views
Hello there,

out of curiosity, is it planned to support .doc (binary 200-2003 / pre .docx) files anytime soon? Additionally, is there a list of .docx file format features that are not supported yet (or not planned at all)?

All the best,
-Jörg B.
Boby
Telerik team
 answered on 07 Dec 2015
1 answer
111 views

What is the little > on top left of the grid?

If I add group it is always at the top of the 1st group.

Can we hide it? Its confusing as if this is the current row and not the one selected.

 

Stefan Nenchev
Telerik team
 answered on 07 Dec 2015
3 answers
223 views

Our centralized logging system detected the following exception in one of our customers machines. It's not systematic or frequent: it just randomly happens on that machine: 

System.Printing.PrintQueueException: PrintTicket provider failed to merge and validate PrintTicket. Win32 error: The data is invalid.
at MS.Internal.Printing.Configuration.PTProvider.MergeAndValidatePrintTicket(MemoryStream basePrintTicket, MemoryStream deltaPrintTicket, PrintTicketScope scope, ConflictStatus& conflictStatus)
at System.Printing.PrintTicketManager.MergeAndValidatePrintTicket(PrintTicket basePrintTicket, PrintTicket deltaPrintTicket, PrintTicketScope scope)
at System.Printing.PrintQueue.MergeAndValidatePrintTicket(PrintTicket basePrintTicket, PrintTicket deltaPrintTicket)
at Telerik.Windows.Controls.Diagrams.Extensions.PrintSettingsViewModel.MergeAndValidatePrintTicket(PrintTicket originalTicket, PrintTicket modificationTicket)
at Telerik.Windows.Controls.Diagrams.Extensions.RadDiagramPrintPreview.DoPrint(String title)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at Telerik.Windows.Controls.RadButton.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler).

 

And here is the code causing the issue:

var printPreviewWindow = new Telerik.Windows.Controls.RadWindow();
var printPreview = new RadDiagramPrintPreview { Diagram = selectedDiagram.diagram };
printPreviewWindow.Content = printPreview;
printPreviewWindow.ResizeMode = ResizeMode.NoResize;
printPreviewWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner;
printPreviewWindow.Width = 800;
printPreviewWindow.Height = 600;
printPreviewWindow.Owner = _owner;
printPreviewWindow.ShowDialog();

 

They are on a quite old version of our product using Telerik 2014.3.1021.40 (.NET 4.0 and Microsoft Windows NT 6.2.9200.0 64 bit).

Our latest version includes Telerik 2015.3.930.40: as far as you guys know, the new version solves that issue?

 

Thank you,

Regards,

 

Manuel

 

Petar Mladenov
Telerik team
 answered on 07 Dec 2015
1 answer
134 views

Hi @all,

Im new to Telerik and currenty trying to implement some Telerik Controls (Trial) to an existing Solution.

Two Projects in the solution are WPF Control Libraries.

After installing Telerik for WPF and changing the standard Windows controls to Telerik controls, everything worked as expected.

For Deployment we need to place our references to a different FilePath (Not the Telerik Installation Path).

But after copying the dll-Files to this path and re-reference them from the new path into the solution, no Telerik-Controls are visible

on the UI anymore. The remaining Standard-Windows-Controls (which we have not switches to Telerik yet) are still visible.

Are there best practices to reference the Telerik-Binaries without installing the Telerik-Setup for WPF Controls?

Any suggestions on this?

Thanks in advance

Andreas Geier

Nasko
Telerik team
 answered on 07 Dec 2015
1 answer
1.0K+ views

Hello,

 We are using  RichTextBox control for Mail merge functionality to implement in our system. Our requirement is to complete the mail merge and print the entire document.

When the print is completed, we would like to know that the printing job is completed successfully for all pages to perform some insert/update operations in the database. We are using the following code to check the printing job is success, but we are not getting the PrintJobInfoCollection results.

 RadDocument _MergedDocument = this.radRichTextBox.MailMerge();
                if (_MergedDocument != null)
                {
                    this.radRichTextBox.Document = _MergedDocument;

                    PrintSettings _PrintSettings = new PrintSettings()
                    {
                        DocumentName = "My document",
                        PrintMode = PrintMode.Native,
                        PrintScaling = PrintScaling.None                        
                    };

                    PrintDialog _PrintDialog = new PrintDialog();
                    _PrintDialog.PageRangeSelection = PageRangeSelection.AllPages;
                    _PrintDialog.UserPageRangeEnabled = true;
                    Nullable<Boolean> print = _PrintDialog.ShowDialog();
                    if (print == true)
                    {                        
                        this.radRichTextBox.Print(_PrintDialog, _PrintSettings);                        
                        PrintJobInfoCollection jobs = _PrintDialog.PrintQueue.GetPrintJobInfoCollection();
                        foreach (PrintSystemJobInfo theJob in jobs)
                        {
                            if (((theJob.JobStatus & PrintJobStatus.Completed) == PrintJobStatus.Completed) || ((theJob.JobStatus & PrintJobStatus.Printed) == PrintJobStatus.Printed))
                            {
                                MessageBox.Show("completed");
                            }
                        }
                    }                    
                }

 

Thanks

 

 

Tanya
Telerik team
 answered on 04 Dec 2015
1 answer
142 views

I use BingMapProvider with IsTileCachingEnabled set to true, and I notice memory leak because of the cache even though I call the Dispose() function for the provider class.

Currently I have a workaround by deriving a CustomBingMapProvider from BingMapProvider to expose the MapSources to public. When disposing, I set all the CacheStorage of the MapSources to null. This workaround works for me.

 Do you have any idea or any solution to dispose the cache properly?

Petar Mladenov
Telerik team
 answered on 04 Dec 2015
1 answer
97 views

Hello,

When we create a mail merge file and click on preview results, the formatting of the document becomes improper as shown in 'MailMerge2'.

 As you can see in 'MailMerge1', we are able to see the proper formatting when we click Show Field Names. 

 However Ms Word Mail merge feature works properly in the same scenario.

Thanks
Todor
Telerik team
 answered on 04 Dec 2015
5 answers
731 views
Hello,

I have a RadChartView Pie Chart where I bound to a collection of objects. My issue is with the spacing on the data point labels. See the attached image for an example. Is there any properties that can override the label location like Excel can do?

Here is my chart definition:

<telerik:RadPieChart x:Name="SalesByFamilyChart" Palette="Windows8" Grid.Row="1">
    <telerik:PieSeries ShowLabels="True" ItemsSource="{Binding SalesByFamilyPieData}" ValueBinding="Amount" RadiusFactor="0.8">
        <telerik:PieSeries.LabelDefinitions>
            <telerik:ChartSeriesLabelDefinition Margin="-4,0,0,0">
                <telerik:ChartSeriesLabelDefinition.Template>
                    <DataTemplate>
                        <StackPanel>
                            <TextBlock Text="{Binding DataItem.Title}" Foreground="Black" FontSize="14"/>
                            <TextBlock Text="{Binding DataItem.Amount, StringFormat=' {0:C0}'}" Foreground="Black" FontSize="12"/>
                        </StackPanel>
                    </DataTemplate>
                </telerik:ChartSeriesLabelDefinition.Template>
            </telerik:ChartSeriesLabelDefinition>
        </telerik:PieSeries.LabelDefinitions>
    </telerik:PieSeries>
</telerik:RadPieChart>


Thanks,

Johnny
sai
Top achievements
Rank 1
 answered on 04 Dec 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?