Multi-informatica
 

 

 

Products

 

Resources

 

 

Using FastReport in IntraWeb. 20/6/2007

FastReport is a powerfull and popular component library to create reports.
If you are an IntraWeb programmer, then maybe you think in obtain pretty pdf reports, by reusing old desktop reports.

Really is very easy, but if you don’t use some tricks, then it will be difficult for you.

Let’s go to see how create a normal pdf report in a normal Delphi deskop application:

 

var pdf: TfrxPDFExport; frreport: TfrxReport;

procedure CrearReport (const nam,resul:String);
begin
frReport.LoadFromFile(nam);
pdf.ShowDialog:=false; //Turn off dialog
pdf.FileName:=resul; frReport.PrepareReport(true);
frReport.export (pdf)
end;

This procedure receive as parameter; nam ( which is the template name) and resul which is the pdf result file name.

This procedure (or similar), works fine in a desktop program. But if we want to do the same in a IntraWeb program, to tray to create a report as response to a request command form a Web page, is possible than not work initially.

What happened? In IntraWeb, the response to the commands was processed in a thread. Is well know the problem to create a form in a thread process (not in the main application thread) the forms can be inconsistent.

FastReport need to create some forms (but invisibles) to create the reports. If we use some similar to code 1, our application will crash when intent to create the report.

What is the solution? We will generate a new thread used to synchronize the report creation.

 

type
TIwFastResport = CLASS(TThread)

protected
procedure Execute; override;
public
na,resu:string;
constructor Create (const nas,resus:string);
procedure crear;
end; constructor TIwFastResport.Create (const nas,resus:string);
begin
inherited create (true);
freeonterminate:=false;
na:=nas;
resu:=resus;
end; procedure TIwFastResport.Execute; begin
synchronize (crear);
end; procedure TIwFastResport.crear;
begin
CrearReport (na,resu) end;

 



How to use the component ?

 

procedure TFormSample.ExportGen_( na:string; resu:string);
var th:TIwFastResport;
begin
th:=TIwFastResport.create(na,resu);
th.resume;
th.WaitFor;
th.Free;
WebApplication.SendFile(resu,True , 'application/binary', '');
end;

 

 

 

Zapatec, Delphi and IntraWeb. 20.5.2007

Zapatec is an Ajax library writing in JavaScript, with a clear and well commented source code. It includes lot of examples in good combination with help documentation.

The objective is to use the Zapatec in a Delphi/IntraWeb application, with the intention to utilize ZP Ajax techniques to communicate the two worlds. We can call it ZADI. See the Zapatec Part1 article for more information.

I'm doing a new change in this web. I start to use Zapatec Widgets to create the user inteface.

History of the name vs library history

The origin of GranPrimo name was for a relation with Gran Hermano (in spanish) that is Big Brother (in English). See more

 

 

Do you need RAD for web and delphi ?. 16.10.2006

If you have an old delphi application done for desktop and you need a fast way to do it web enable, then TGpGadGet is what you need. The objetive is to make a simple system ( 1 component) to create delphi programs which run both in desktop or in web mode) See more

AJaX 4 Intraweb 24/3/2006

Recently more of a year than was named a technique that is revolutionizing the form to make pages WEB. Its name is AJaX.

Really it is not a new technique, (for example GranPrimo uses AJaX techniques from the beginning), but nobody give it a name, and nobody explored in this technique as much as now.

I have made ' experiments' of use of this technique in IntraWeb programs, giving like result components that can be used in any existing IntraWeb application, adding a simple AJaX solutions to old problems of the IntraWeb app.

I have wanted to document these experiences in a serie of articles that begin with ajax4intraweb.htm

Gp2006. Ready for Delphi 2006 and compatible with more librarys

Gp extend the power to more sock librarys. Now we include Synapse and RTC support as basic sock library.

We refactored the library to enclose the functionallity of HTML/JAVA remote control in delphi components really to use in "any web server" *. The implementation is sock library independient, so you can use the same Gp kernel in different systems. We do it Delphi 2006 compatible, and we was eliminated Bugs and warnings. Now is more clear and efficient code for .Net.

The result is than now Gp support :

I want to do demos with full features for free evaluation to help to another programmers in the job. You can have the source code by order in Atozed Purchase Point

Downloads

Complete source demos and packs, compiled for delphi 2006

 

SSL

 

Introduction to SSL. As you know, there are too many hackers out there in the net that can read the password and personal info traveling throughout the net between the C/S. We need to have that security solution for our components.

 

Article. Running Intraweb application in virtual directories. 3-Jun-2005

Intraweb need serveral URL directories to execute an application: /files, /js, /exec... This is an important problem when you want to have several "stand-alone" intraweb application running in a common domain, because some of this directories interfere to each other. ( more ).

GDB GDS indexer. 1-Jun-2005

And project example of GDB indexer plugging for google desktop search: Indexes the metadata in a GDB file ( Firebird or IntraWeb files). More about GooGDB project.

 

gpfeatures project. Complete and free for evaluation 27-may-2005

27/5/2005. Two package downloads are available:

The full evaluation (with complete functions) executable examples in setupgp1050527executables.exe

Some files greater than 1mb, are not available in some of the gp webs. Visit http://www.multite.es/granprimo if you can't download the files.

This program is a small guide of Gp for Intraweb and GpIndy components. It illustred different purposes of Gp library. The new components for Intraweb, the power of mix the use of Intraweb and Indy, and new 'cam and games' components.

 

 

   
   

Teléfono: 978-610539 - Fax: 978-610861 -Trav.Agustina Aragón 1,1e 44002 Teruel ( España ).webmaster

Copyright © 1997-2004 , [Multi-Informatica Teruel, S.L].La información contenida en este documento está sujeta a modificaciones sin previo aviso. Otros productos u organizaciones mencionadas aquí son marcas comerciales o marcas registradas propiedad de sus respectivas organizaciones o propietarios.

  Zapatec