Solved

How do you get TQRExcelFilter to save a quickreport to an xls file?

Posted on 2007-11-14
4
2,115 Views
Last Modified: 2013-11-22
How do you get TQRExcelFilter to save a quickreport to an xls file? I have dropped aTQRExcelfilter compinent on the form, and when the preview screen shows, there is an option to save as an xls file. But nothing happens
0
Comment
Question by:jacoalb
4 Comments
 
LVL 19

Accepted Solution

by:
Limbeck earned 150 total points
ID: 20287377
dropping a filter to your report will only add the option to save as in excel. If you want to save it using your code try something like this


var
  sf : TQRExcelFilter;
begin
  ef := TQRExcelFilter.Create('c:\temp\abc.xls');
  try
    yourreport.ExportToFilter(ef);
  finally
    ef.Free;
  end;
end;
0
 
LVL 1

Expert Comment

by:Computer101
ID: 21216628
Forced accept.

Computer101
EE Admin
0
 

Expert Comment

by:Engineerly
ID: 22907057
The accepted solution gives an error:  Incompatible types: 'TComponent' and 'String'
Evidently something other than a string is required.
There does not seem to be any documentation on the use of that TQRExcelFilter component.
A Google search led to a hint that maybe there are two different components: one that comes with the standard Delphi and another that is a professional add-on, but the Delphi compiler is still configured to look at the original (which expects a string parameter).
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now