XAML Export

FlavioFlavio Brazil
edited 2:00AM 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 2:00AM
    Also, the generated XAML is created using "Page" root attribute, making impossible to cast XamlReader.Load as Window
  • FlavioFlavio Brazil
    edited 2:00AM
    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