XAML Export

FlavioFlavio Brazil
edited 5:22AM in FastReport .NET
Hi.

After read Dynamically create a Table in XAML, I tried to export a report as XAML using MemoryStream.

Using the following code:
var result = new MemoryStream();
m_Report.Prepare();
var export = new FastReport.Export.XAML.XAMLExport();
m_Report.Export(export, result);
return result;

throws an error "The path is not of a legal form.". It seems that "XAMLExport.cs" method "Start()" expect a FileName ("path = Path.GetDirectoryName(FileName);")

Will I be able to export a report as XAML using only MemoryStream?

Comments

  • FlavioFlavio Brazil
    edited 5:22AM
    Also, the generated XAML is created using "Page" root attribute, making impossible to cast XamlReader.Load as Window
  • FlavioFlavio Brazil
    edited 5:22AM
    Another problem:

    BorderThickness is being generated using locate settings.

    My locale uses commas (",") as decimal separator, so BorderThickness is generated as "0,25" and break XAML. The correct behavior is ignore and always use "." as decimal separator ("0.25")

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.