Telerik Forums
UI for WPF Forum
10 answers
411 views
We are using PDF Viewer print functionality to print the document. It was working but some times later, it is throwing "Null Reference Exception"

Version Details: 2012.3.1129.40

Exception Stack trace:

Object Reference not set to an object

at Microsoft.Internal.GDIExporter.CopyTo(UInt16& buffer, Int32 len, String s)

   at Microsoft.Internal.GDIExporter.CGDIRenderTarget.CreateFontW(GlyphRun pGlyphRun, Double fontSize, Double scaleY)

   at Microsoft.Internal.GDIExporter.CGDIRenderTarget.RenderTextThroughGDI(GlyphRun pGlyphRun, Brush pBrush)

   at Microsoft.Internal.GDIExporter.CGDIRenderTarget.DrawGlyphRun(Brush pBrush, GlyphRun glyphRun)

   at Microsoft.Internal.AlphaFlattener.BrushProxyDecomposer.Microsoft.Internal.AlphaFlattener.IProxyDrawingContext.DrawGlyphs(GlyphRun glyphrun, Geometry clip, Matrix trans, BrushProxy foreground)

   at Microsoft.Internal.AlphaFlattener.PrimitiveRenderer.DrawGlyphs(GlyphRun glyphrun, Rect bounds, Matrix trans, String desp)

   at Microsoft.Internal.AlphaFlattener.Flattener.AlphaRender(Primitive primitive, List`1 overlapping, Int32 overlapHasTransparency, Boolean disjoint, String desp)

   at Microsoft.Internal.AlphaFlattener.Flattener.AlphaFlatten(IProxyDrawingContext dc, Boolean disjoint)

   at Microsoft.Internal.AlphaFlattener.Flattener.Convert(Primitive tree, ILegacyDevice dc, Double width, Double height, Double dpix, Double dpiy, Nullable`1 quality)

   at Microsoft.Internal.AlphaFlattener.MetroDevice0.FlushPage(ILegacyDevice sink, Double width, Double height, Nullable`1 outputQuality)

   at Microsoft.Internal.AlphaFlattener.MetroToGdiConverter.FlushPage()

   at System.Windows.Xps.Serialization.NgcSerializationManager.EndPage()

   at System.Windows.Xps.Serialization.NgcDocumentPageSerializer.SerializeObject(Object serializedObject)

   at System.Windows.Xps.Serialization.NgcDocumentPaginatorSerializer.SerializeObject(Object serializedObject)

   at System.Windows.Xps.Serialization.NgcSerializationManager.SaveAsXaml(Object serializedObject)

   at System.Windows.Xps.XpsDocumentWriter.SaveAsXaml(Object serializedObject, Boolean isSync)

   at System.Windows.Xps.XpsDocumentWriter.Write(DocumentPaginator documentPaginator)

   at System.Windows.Controls.PrintDialog.PrintDocument(DocumentPaginator documentPaginator, String description)

   at Telerik.Windows.Documents.Fixed.Print.PrintManager.Print(PrintSettings settings)

   at Telerik.Windows.Controls.FixedDocumentViewerBase.Print(PrintSettings settings)

   at Telerik.Windows.Controls.FixedDocumentViewerBase.Print()



Let me know how to resolve this issue. and also the pdf document is of 70 Kb but while printing through PDF Viewer it sends 700 kb file to printer.
Kedar
Top achievements
Rank 1
 answered on 17 Aug 2013
1 answer
81 views
We are having a problem with the GridView filter when a customers screen resolution is set smaller. When clicking the header to open the filter, the filter box is partially hidden behind the grid. 

I have attached a screenshot of the full screen of our app on a small resolution. 
Yoan
Telerik team
 answered on 16 Aug 2013
2 answers
297 views
Hi Experts,

I have a question about GridViewColumnGroup. Here is my code below:

<telerik:RadGridView GridLinesVisibility="Vertical"  CanUserFreezeColumns="False" DataContext="{Binding ElementName=mainWindow}" ItemsSource="{Binding As}"
        AutoGenerateColumns="False"
        IsFilteringAllowed="False"
                             ShowGroupPanel="False"
        RowIndicatorVisibility="Collapsed">
            <telerik:RadGridView.ColumnGroups>
                <telerik:GridViewColumnGroup Name="Age" Header="Age" />
                <telerik:GridViewColumnGroup  Name="TestCode" Header="TestCode"/>
            </telerik:RadGridView.ColumnGroups>
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn  DataMemberBinding="{Binding Min}" ColumnGroupName="Age"/>
                <telerik:GridViewDataColumn  DataMemberBinding="{Binding Max}" ColumnGroupName="Age" />
                <telerik:GridViewDataColumn  DataMemberBinding="{Binding TestCode}" Width="120"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>

You can see that the Age column is separate into "Min" and "Max" Column now. It is what I want. But how to merge the TestCode column header into one row? And how to center the "Age" header?

Any comments and suggestion is appreciate. Thanks.
Yoan
Telerik team
 answered on 16 Aug 2013
1 answer
44 views
Tile View when maximized the minimized tile windows are not shrinking resulting in lossing the data. Setting RowHeight and Column Width for minimized windows works fine but i need to have a consistent look with standard height and width. How can i acheive that.
Stefan
Telerik team
 answered on 16 Aug 2013
1 answer
58 views
I am using the ScheduleView and am looking to add a vertical line to represent the current time

I overrode the OrientedTimeRulerItemStyleSelector and am able to change the color of the TimeRulerLine

However, I want the current line to be above the schedule appointments. Is there a way I can set the Z-index of the TimeRuleLine?

Thanks
Rosi
Telerik team
 answered on 16 Aug 2013
4 answers
56 views
Using the 2013.2.724.45 version:

When using the RadMaskedTextInput, if the user types a space very quickly after typing a letter, the previous letter is removed, but the caret position still advances.  I have reproduced this bug in the WPF Rad Controls Demo Q2 2013 SP1 for MaskedTextInput.  

When typing slowly, the bug will not appear.  I could not reproduce the bug in the SL demo on the web.

It does not seem to matter what settings are made on the control.

Please advise.  Thanks!
Petar Mladenov
Telerik team
 answered on 16 Aug 2013
1 answer
51 views
Hi,

i'm using the "Gouping and Filtering" Example of ScheduleView. It works fine, but now i have to add a second Group called "Abteilung".
How do i add this second Group?  First Group is Speakers and works great, but what is to do to add the second Group "Abteilung"?

thanks
Rene
Rosi
Telerik team
 answered on 16 Aug 2013
1 answer
122 views
Hi,

I have RadRichTextbox with XamlDataProvider and I use Mail Merge function.  In UI it works great.  But when I try to extract a current document on the backend (eg.  RadDocument resultDoc = myRadRichTextBox.Document.MailMergeCurrentRecord();) the resultDoc is empty.  If I do not use XamlDataProvider then it works fine. 

Am I supposed to be extracting merged document differently when I use DataProvider?

Some background ...  I am creating an email editor for mail merge.  Email text is saved in the database.  I binded XamlDataProvider's Xaml property to property on ViewModel.  This way I can save and load it to and from database.  User uses Mail Merge function to scroll through records,.  Then user can click on a Button which should send email with the current record being viewed.  So I need to extract the document. 

Thank you in advance.
Petya
Telerik team
 answered on 16 Aug 2013
1 answer
114 views
Hi,

i have a small problem, i bind the collection to RadTreeView and i write a mouse click event to open and then if i click the del key from keyboard. it is trying to delete the item from the tree. here i use delete key to delete something which is in the open window.

my question is is there any property to disable the keyboard stroke on RadTreeView

Thanks

Anil
Kiril Vandov
Telerik team
 answered on 16 Aug 2013
3 answers
103 views
Hi Guys,

I'm trying to implement my own date filter which only based on Year, and the following code works when you using
a canlendar to pick the year number, it can shows 2013 when you pick it.

However if you enter year number from textbox, the tooltip will display error, and after invistigation, I found
if I enter 1920 into textbox, it will read first two digis and parse it as 19-08-2013, and when the 3rd digit
entered, it shows a error.

How can I input year number manually?

Thanks.


public
override FrameworkElement CreateFieldFilterEditor()
      {
          Telerik.Windows.Controls.RadDatePicker datePicker = new Telerik.Windows.Controls.RadDatePicker();
          datePicker.DateSelectionMode = Telerik.Windows.Controls.Calendar.DateSelectionMode.Year;
          datePicker.Culture = new System.Globalization.CultureInfo("en-US");
          datePicker.Culture.DateTimeFormat.ShortDatePattern = "yyyy";
           //dateTimePicker.InputMode = Telerik.Windows.Controls.InputMode.DatePicker;
          // This binding will transfer the significant property of your editor to the filtering view model.
          Binding selectedValueBinding = new Binding("Value");
          selectedValueBinding.Mode = BindingMode.TwoWay;
          selectedValueBinding.FallbackValue = null;
          selectedValueBinding.Converter = new DateTimeFilterEditorConverter();
          datePicker.SetBinding(Telerik.Windows.Controls.RadDatePicker.SelectedValueProperty, selectedValueBinding);
          return datePicker;
      }
Vladi
Telerik team
 answered on 16 Aug 2013
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?