Jump to content


Photo

Quickreport


  • Please log in to reply
54 replies to this topic

#1 Flavio

Flavio

    Active Member

  • Members
  • PipPipPip
  • 66 posts

Posted 27 May 2011 - 06:36 PM

there is the possibility of implementing reports in QuickReport with uniGui? For I have prepared some reports on other software and would like to use them
  • 0

#2 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9815 posts

Posted 27 May 2011 - 07:04 PM

there is the possibility of implementing reports in QuickReport with uniGui? For I have prepared some reports on other software and would like to use them


Export your reports to PDF file and show them in a TUniURLFrame.
  • 0

#3 Flavio

Flavio

    Active Member

  • Members
  • PipPipPip
  • 66 posts

Posted 27 May 2011 - 07:10 PM

because the problem is just that when I say that this export the report in another form, the server crashes. What would be the way to implement this correctly?
I've tried putting both the QuickReport form uniGui qndo on Form VCL and two ways are catching the server.
  • 0

#4 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9815 posts

Posted 27 May 2011 - 07:13 PM

because the problem is just that when I say that this export the report in another form, the server crashes. What would be the way to implement this correctly?
I've tried putting both the QuickReport form uniGui qndo on Form VCL and two ways are catching the server.


Well, you reporting tool must support running in a multi threaded environment. I haven't used QuickReport much so I'm not sure what options are available for it.
  • 0

#5 Flavio

Flavio

    Active Member

  • Members
  • PipPipPip
  • 66 posts

Posted 27 May 2011 - 07:20 PM

I can use any VCL component along with uniGUI? because we did not know QuickReport report.
if you can do some tests on assunder and so have a position I would appreciate it.

Thanks.
  • 0

#6 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9815 posts

Posted 27 May 2011 - 07:23 PM

Visual QuickReport VCL components can't be used in uniGUI and likely they will crash. What is your Delphi and QR version?
  • 0

#7 Flavio

Flavio

    Active Member

  • Members
  • PipPipPip
  • 66 posts

Posted 27 May 2011 - 07:35 PM

Delphi 2009
QuickReport : 5.05
  • 0

#8 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9815 posts

Posted 27 May 2011 - 07:37 PM

Is QR an integrated part of Delphi or do you install it separately?
  • 0

#9 Flavio

Flavio

    Active Member

  • Members
  • PipPipPip
  • 66 posts

Posted 27 May 2011 - 07:44 PM

been installed separately
  • 0

#10 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9815 posts

Posted 27 May 2011 - 07:45 PM

Can you give me link for most recent version?
  • 0

#11 Flavio

Flavio

    Active Member

  • Members
  • PipPipPip
  • 66 posts

Posted 27 May 2011 - 07:49 PM

http://www.quickreport.co.uk/
  • 0

#12 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9815 posts

Posted 27 May 2011 - 08:35 PM

As far as I can see QuickReports is not OK with multi-threaded use. I will try to make some tests with it.

The best way is to run QuickReport application as a separate process and communicate with it using some inter-process comm methods.
  • 0

#13 Flavio

Flavio

    Active Member

  • Members
  • PipPipPip
  • 66 posts

Posted 27 May 2011 - 08:40 PM

Ok, so this cominicação between software, as I do for my web application to access the generated PDF?
  • 0

#14 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9815 posts

Posted 27 May 2011 - 08:43 PM

You will send a command to QuickReport app and it will generate the report and save it in a file. uniGUI app will show this file in a urlFrame.
  • 0

#15 Montri Patchaiyo

Montri Patchaiyo

    Advanced Member

  • Members
  • PipPipPipPip
  • 202 posts
  • LocationBangkok, Thailand

Posted 27 May 2011 - 08:57 PM

As far as I can see QuickReports is not OK with multi-threaded use. I will try to make some tests with it.

The best way is to run QuickReport application as a separate process and communicate with it using some inter-process comm methods.

Hi Farshad,
Is it possible to create thread-safe with SynObject to workaround?
  • 0

#16 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9815 posts

Posted 27 May 2011 - 09:00 PM

By using CriticalSection you can force some portion of code to run in a single thread at a time but it won't make it thread-safe. Components like QR aren't designed with multi-threading in mind so there is no guarantee that they will work in a threaded app.
  • 0

#17 Flavio

Flavio

    Active Member

  • Members
  • PipPipPip
  • 66 posts

Posted 27 May 2011 - 11:12 PM

Dude I am new in this process, how do I open a PDF in urlFrame? what would be the right syntax to the web client view the file? Excuse the ignorance ... rsrsr
  • 0

#18 Montri Patchaiyo

Montri Patchaiyo

    Advanced Member

  • Members
  • PipPipPipPip
  • 202 posts
  • LocationBangkok, Thailand

Posted 28 May 2011 - 04:12 AM

Dude I am new in this process, how do I open a PDF in urlFrame? what would be the right syntax to the web client view the file? Excuse the ignorance ... rsrsr

You just only create PDF file in the path that you specific and copy the path + report-name.pdf to URLFrame, the download demo of UniGUI can help you for that.
  • 0

#19 Anders Andersen

Anders Andersen

    Advanced Member

  • Members
  • PipPipPipPip
  • 144 posts
  • LocationCopenhagen, Denmark

Posted 28 May 2011 - 08:05 AM

I can add that I am using Quickreport 5.0.5 and D2009 along with UniGui with no issues whatsoever. You need to manually create the form that the report component resides on and manually create an export component to produce the PDF file.

The example code in the quickreport knowledge base should be enough to get you started. I can post my own example code on monday if you like.
  • 0

#20 Flavio

Flavio

    Active Member

  • Members
  • PipPipPip
  • 66 posts

Posted 28 May 2011 - 12:22 PM

Man, it would be great if you could send me the sample code, just to place. Thanks
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users