Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello guys.

I am developing a project in WPF ,C#, Crystal Reports, MS sql Server. The project is 99% complete but 1% issue is to remove the blue background from the Report viewer.I googled but did'nt find any thing.

Any help would be appreciated.
Thanks.

My Xaml code is:

XML
<Grid>
        <Border Style="{StaticResource RoundBorder}" Margin="10" CornerRadius="50" BorderBrush="SteelBlue">
            <Border.Background>
                <SolidColorBrush Opacity="0.5" Color="#333" />
            </Border.Background>

            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions >
                    <RowDefinition Height="30" />
                    <RowDefinition />
                </Grid.RowDefinitions>

                <Button Name="CloseButton" Click="CloseButton_Click" Content="X" FontSize="16" FontWeight="Bold" Style="{StaticResource GlassButton}" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Right"  Foreground="Red" Width="30"/>
                <Viewer:CrystalReportsViewer Name="CrystalReportViewer1" Grid.Column="0" Grid.Row="1" Margin="10 10 10 30" Background="Transparent" ToggleSidePanel="None"  BorderBrush="Transparent"  OverridesDefaultStyle="True"   ShowToolbar="False" ShowStatusbar="False" ></Viewer:CrystalReportsViewer>

            </Grid>
        </Border>
    </Grid>

</Window>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900