Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting reports to razor view
Message
De
11/08/2013 16:03:20
 
 
À
11/08/2013 15:31:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01580267
Message ID:
01580273
Vues:
68
Data, including frx files are hold on Postgres database on Linux VPS server.
For frx files there is table in database which mirrors frx structure.
If report is required, frx content is read from server and written to temporary
frx file.
Users can modify, preview, print and convert it to pdf and other formats using VFP
application.
After user has modified report (application invokes MODIFY REPORT command)
frx file is opened and written pack to database in server so that other users
can use modified report.

Some users do not have Windows OS and want to get same reports from browser.
For them there is Mono ASP.NET MVC3 application running under same database.

Currently this application converts frx files to RDL and uses fyireporting.com
RDL endinge to create pdfs and returns them to browser.
This works fine, we can use VFP report designer and get result pdf to browser.

However fyireporting.com rdl engine is not developed anymore. frx uses absolute
positioning and in result pdfs files texts are not properly aligned.
Some features like stretch on overflow are not implemented.

There are hundreds of reports and most users are using VFP9 clients.
Manual re-write requires also all changes afterwards to be done in two places, in frx and cshtml
files. I'm looking for a way to keep only single report layout description.

Only solution seems to create frx -> cshtml converter which converts
frx files every time if report is required by creating html razor layout
containing html elements with absolute positioning like VFP HTML converter does.


>I'm familiar with Razor, I use it every day. I think it would be easier to rewrite the reports in Razor than to write a program to convert them.
>
>>frx2any adds data also to html.
>>
>>I'm looking for a way to create razor cshtml file which contains html formatting and
>>c# data access commands.
>>Running it through razor view engine creates html from it.
>>
>>This is similar to frx to rdl converter.
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform