add custom class

Stimulsoft Reports.NET discussion
Post Reply
Dennis Ortiz
Posts: 2
Joined: Fri Jul 21, 2006 12:30 pm

add custom class

Post by Dennis Ortiz »

I want to add a custom class to stireport. To do that to do the following:

1. i add the assembly reference
2. modify stireport code

using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.ReportControls;
using Stimulsoft.Report.Components;
using HighlanderLibrary;

namespace Reports
{

public class Report : Stimulsoft.Report.StiReport
{
HLFirebirdUtils fb ;
public Report()
{
this.InitializeComponent();

}

but i get the following error : :cry:
error CS0122: 'HighlanderLibrary.HLFirebirdUtils' is inaccessible due to its protection levels

inside the HighlanderLibraries are public classes
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

add custom class

Post by Edward »

Dennis wrote:I want to add a custom class to stireport. To do that to do the following:
1. i add the assembly reference
2. modify stireport code

using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.ReportControls;
using Stimulsoft.Report.Components;
using HighlanderLibrary;

namespace Reports
{

public class Report : Stimulsoft.Report.StiReport
{
HLFirebirdUtils fb ;
public Report()
{
this.InitializeComponent();

}

but i get the following error : :cry:
error CS0122: 'HighlanderLibrary.HLFirebirdUtils' is inaccessible due to its protection levels

inside the HighlanderLibraries are public classes
Thanks for the question.
То solve your problem, please contact us via LiveSupport.
Post Reply