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

Stimulsoft Reports.AVALONIA discussion
Post Reply
kmapache
Posts: 2
Joined: Fri Jan 10, 2025 5:12 am

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

Post 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 320 times
Is it my problem? Just started learning reports, please help me, thank you!
Lech Kulikowski
Posts: 6977
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

Please check the next build 2025.1.3 in the next week.

Thank you.
kmapache
Posts: 2
Joined: Fri Jan 10, 2025 5:12 am

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

Post by kmapache »

Ok. Thank you!
Lech Kulikowski
Posts: 6977
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply