digitalmetaphors
Comments
-
What are you doing to the dataset? Can you provide more information about
this report, ie. what are your event handlers doing in this report?
Cheers,
Jim Bennett
Digital Metaphors
-
Call Report.PrintToDevices instead of Report.Print. Use the Viewer.NextPage
and PriorPage routines to traverse through the pages.
procedure TForm1.Button1Click(Sender: TObject);
begin
ppReport1.PrintToDevices;
1. Have you downloaded the latest printer driver?
2. Take one of our main demo reports and print it. Does it show the same
behavior with the page numbers? If you can't reproduce the problem, then
check your event handlers for …I would expect HP LJ 4 and 5 to work well. We have a LJ 5 here that we all
day long to print reports. Can you send us an example that doesn't work
correctly? Are you using the latest printer driver from HP?
Cheers,
Michael,
I've emailed it to you.
Cheers,
Jim Bennett
Digital Metaphors
You'll need to resize the header and footer bands. You'll also have to
manually set the top property of the controls for the best fit, based on the
font you are using. Can you modify my demo to work like yours and I'll see
what I ca…I created a demo in which a report will regenerate until it fits on a single
page:
http://www.digital-metaphors.com/tips/ForceFontToOnePageRe…What are you doing in code? Do our demos show this behavior? Start removing
parts of the report until the problem goes away, then you'll know what item
was causing the problem. Then go back to the original copy and try to fix
that it…You can launch the wizard in code:
http://www.digital-metaphors.com/tips/LaunchReportWizardForDesigner.zip
Cheers,
…You can create your own DADE plug-in, modeled after daDBBDE.pas, which can
work this way.
The data dictionary won't help in this case, but it is useful when you want
to control the joins which can be created, which fields and ta…Thanks for showing us your approach and the case that you ran into. We can
look into adding another option for saving to a memory stream, instead of
database or file as the save to type.
Cheers,
Jim Bennett
Digit…Try calling Template.SaveToDatabase instead of SaveToStream.
You can access the template data directly, by reading it into a TStringlist
without having to load the template into a report object first. The code I
posted before sh…Use the template OnLoadEnd event to run each template through your "template
cleaner." Check out the Templates thread in the Tech-Tips newsgroup for an
article on using template events.
Cheers,
Jim Bennett
…Probably the best solution for you is to save the reports down always in one
format, such as SQL server using ADO. Then write converters to convert the
report templale on the fly to another database type. This way you can
change data…No, the templates will not automatically convert from Paradox to SQL Server.
The data access definition is saved inside the template for the dataviews.
You'll have to parse the template and convert the object definitions, just
as if y…You'll have to reorder your dataset. The group objects in ReportBuilder do
not order the data. The groups only create bands around the data that you
provide.
Cheers,
Jim Bennett
Digital Metaphors
You'll need to configure the main report PassSetting = psTwoPass so that the
page count is known when the first page is generated.
Cheers,
Jim Bennett
Digital Metaphors
Is this a SQL question?
You can certainly create a TQuery which contains:
SELECT A.Company,
SUM(B.Amt - C.Amt) AmountOwed
FROM A INNER JOIN B ON (A.Id = B.Id)
INNER JOIN C ON (B.Id = C…See the example in RBuilder\Demos\5. AutoSearch\5. Custom AutoSearch
Dialog...
--
Cheers,
Tom Ollar
Digital Metaphors Corporation
Create six groups in the report - set to the most likely order. Order the
data based on the user selection. Loop through the Report.Groups array
property, setting Group.BreakName to the appropriate FieldName. Access the
DBCalcs in th…This is similar to the 'Rename' function in the Windows Explorer, where only
the first item selected enters edit mode when 'Rename' is selected from the
popup menu. In other words, it is working as intended. However, you could
certai…I would continue to create all of the labels before the report is generated.
Then configure the labels based on user selection (set visibility, position,
etc.) This will work better because the report engine initializes the entire
lay…Your event handler is firing for the report. The report will try to
generate an empty report. You can control the behavior of the report by
setting the Report.NoDataBehaviors property. You can also place a check in
your event handl…There is a response, please delete your news account and recreate it to
clear your cached messages.
Cheers,
Jim Bennett
Digital Metaphors
Are you using DADE? If so, then you can use the DataDictionary component to
define the field aliases. If you are creating the search fields at runtime
on the report, then the field alias parameter controls the field alias text
to be…You'll need to use the label skip technique. Here is the example code since
our ftp server is down:
This demo has an edit box for the number of labels to skip and a button to
print in its OnClick event handler.
TForm…The Printer object reflects the settings as needed by the ongoing report
generation cycle. Section-type subreports can change the printer settings
(even the printer) as the report generates. These settings are not
appropriate for the …In the FixLayout procedure called in the following code, you can reposition
the controls in the bands of the report. Here is the code to access the
properties of the print dialog after it is closed. You are right, they are
not refle…You'll have to use a report object loop as given in the TechTips newsgroup
in the CodeBased thread. Then you can measure the extents of the page
definition. Read Report.PrinterSetup.PaperHeight and PaperWidth. Also
subtract the marg…It is going to be much easier to simply create different report templates
which are custom built for the best fit for each paper size. Depending on
which size you want to print, you can load one of these templates into the
report and…