C++ -> C#?

Hi!

First of all can fast-reports.net written in C# display reports which were make via the designer in C++?

And if so why does this say file exception (Cannot load the file. Unknown file format):
            Report fd = new Report();

            fd.FileName = "..\\..\\..\\layouts\\tillreceipt.fr3";

            if (File.Exists(fd.FileName))
            {
                fd.Load(fd.FileName);
                if (fd.Prepare())
                    fd.ShowPrepared();
            }
            else { Console.Beep(); }

Thats all I have for the code to display it... I'm new so if I written it wrong please let me know ;P

Comments

  • edited 6:26AM
    ravenx30 wrote: »
    Hi!

    First of all can fast-reports.net written in C# display reports which were make via the designer in C++?

    And if so why does this say file exception (Cannot load the file. Unknown file format):
                Report fd = new Report();
    
                fd.FileName = "..\\..\\..\\layouts\\tillreceipt.fr3";
    
                if (File.Exists(fd.FileName))
                {
                    fd.Load(fd.FileName);
                    if (fd.Prepare())
                        fd.ShowPrepared();
                }
                else { Console.Beep(); }
    

    Thats all I have for the code to display it... I'm new so if I written it wrong please let me know ;P

    Thought Id answer the question. It can be converted as long as you open the file in c++ version of fast report (4.0) then save as (*.frx) after which fastreport.net can load it, but then you have to convert the report script to c#.

Leave a Comment