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:46PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.