Page 1 of 1

Please help, the report preview page cannot display the print button!

Posted: Fri Jan 10, 2025 5:28 am
by kmapache
I am using Stimulsoft When reporting Valonia, according to the example, the print button cannot be displayed. I don't know where the problem is. The code is as follows:
MainWindows.axaml.cs

Code: Select all

using Avalonia.Platform;
using Stimulsoft.Report;
using System;

namespace AvaloniaApplication2
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            var localstream = AssetLoader.Open(new Uri($@"avares://AvaloniaApplication2/Localization/zh-CHS.xml"));
            StiOptions.Localization.Load(localstream);

            InitializeComponent();

            Stimulsoft.Drawing.Graphics.GraphicsEngine = Stimulsoft.Drawing.GraphicsEngine.Gdi;

            StiOptions.Configuration.IsAvalonia = true;

            //Application.Current.RequestedThemeVariant = ThemeVariant.Light;
            //StiAvaloniaTheme.ApplyNewTheme(StiAvaloniaAppThemeAppearance.Light);

            var report = StiReport.CreateNewReport();
            var stream = AssetLoader.Open(new Uri($@"avares://AvaloniaApplication2/Reports/Report.mrt"));
            report.Load(stream);
            viewerControl.Report = report;
        }
    }
}
MainWindows.axaml

Code: Select all

<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="using:AvaloniaApplication2"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:viewer="using:Stimulsoft.Report.Viewer.Avalonia.Viewer"
        mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
        x:Class="AvaloniaApplication2.MainWindow"
        WindowStartupLocation="CenterScreen"
        Title="AvaloniaApplication2" Width="1400" Height="800">
    
    <viewer:StiViewerControl x:Name="viewerControl" />
</Window>
afa0e4a3-8201-46ab-a95e-1793d8d1962f.png
afa0e4a3-8201-46ab-a95e-1793d8d1962f.png (60.91 KiB) Viewed 95767 times
Is it my problem? Just started learning reports, please help me, thank you!

Re: Please help, the report preview page cannot display the print button!

Posted: Fri Jan 10, 2025 9:07 am
by Lech Kulikowski
Hello,

Please check the next build 2025.1.3 in the next week.

Thank you.

Re: Please help, the report preview page cannot display the print button!

Posted: Mon Jan 13, 2025 5:26 am
by kmapache
Ok. Thank you!

Re: Please help, the report preview page cannot display the print button!

Posted: Mon Jan 13, 2025 8:01 am
by Lech Kulikowski
Hello,

You are welcome.