digitalmetaphors
Comments
-
The calc components in the subreport are reset when the subreport finished
printing for one master record. What you have to do is hook up the OnCalc in
the subreport to update a VariableN.Value in the main report (which doesn't
have a… -
Yes, you should add raCodMod to the uses clause on the server.
Cheers,
Jim Bennett
Digital Metaphors
-
You have to set the Subreport.ParentPrinterSetup to false. Then configure
the individual subreport's PrinterSetup to be the A4 paper size. We have
tested this configuration and it will work. You should be using
Subreport.PrintBehavior… -
First, I'd create a calculated field on month in the dataset. Some of our
crosstab demos show how to do this on the DBDemos/BDE database queries. It
sounds as if you want to create a master detail relationship between the
tables. Orde… -
Try setting the page height before calling Report.Print- what is the result?
Cheers,
Jim Bennett
Digital Metaphors
-
Try setting the page height before calling Report.Print as a test. There is
some initializatoin that is setting the first page of the report up and it
may be toolate to try and cahgne the PageDef in the Report.BeforePrint
event. If y… -
I forgot to mention that in RAP, you need to code RAP pass through functions
for any methos calls that aren't available in the RAP environment when you
get compile errors. There are examples of creating RAP pass through
functions in t… -
Here is a demo that creates a report and includes two groups:
http://www.digital-metaphors.com/tips/DynamicReportCreation.zip
Ch… -
There is no uses clause for RAP exactly. RAP is a runtime interpreter which
we have custom coded. RAP only knows about published properties for
registered classes and special RapRTTI classes are needed to provide public
member visibil… -
Creating a region is like creating any other control. Create it, set its
band property, top, left, width height....etc. After you create the region,
assign the Subreport.Region property to the region component.
An example of cre… -
The RAP classes are internal. We do release the source to RAP and there is
no documentation on using this objects at runtime. We have created a few
'tips' to configure the RAP code/variables/event handlers for a report.
Theses should … -
Sorry if I was short on the examination of your code and didn't answer your
question. There are small pieces which can make a difference when creating
code at runtime that is going to be interpreted at runtime. I first wanted
to give… -
I forgot to mention a few things in the first post, so I'll respond here.
This is what you are looking for:
{get the codemodule for the report}
lCodeModule := raGetCodeModule(ppReport1);
if (lCodeMod… -
To assign a component to a region, set the component's Region property
ppMemo1.Region := ppRegion1;
First, create the report at design time (this is your prototype) to set the
properties necessary to get this working, such… -
Yes, you may get more pages. So, detect the first page is easy. Then on all
the others, print the middle footer. Set the footer to not print on the last
page using its PrintOnLastPage property. Then use a summary and and shift it
to t… -
If you want to change the height of the footer while the repor tis
generating, then best event to use is the Report.OnStartPage event.
The footer cannot be dynamic height.
The end of the first pass is the earliest time you… -
Yes, see the methods available on the TppReportTemplate class in our help
file. At runtime, call Report.Template.SaveToFile.
Cheers,
Jim Bennett
Digital Metaphors
-
You should first get this report working by creating it at design time. Then
port it over subreport by subreport to be created in code.
You should NOT code this. Just load the template into the subreport with
Subreport.Report.Te… -
No, we don't have that feature. You could create a RAP pass through
function to do this. Pass the report instance as described previously, and
then in the pass through you have the report instance that is running in the
background th… -
Yes, Chris is right. Pass the report as a parameter on the pass through
function instead of referencing the form variable to get at the report.
Then it should work in a backgruond thread because a second report instance
will be runnn… -
On your variable, set its DataType to double, as it defaults to string and
will show a zero in this case.
Also, in order to assure that the OnCalc events fire in the right order, use
TppVariable instead of TppDBCalc. Set the var… -
The easiest way to do it from RAP is to add a calculated field on your
dataset that is the total. Then you can simply reference that field from the
pipeline in the RAP OnCalc event handler of a TppVariable component.
Otherwise, … -
I posted an example to your post in the other newsgroup about this topic. I
ported it to RAP. When you print to the printer, it displays 'Copy N' in the
page style in a label where N is the copy number.
Cheers,
… -
Create a custom print dialog. This will let them choose one of the available
printers for each copy. Then print the copies in code. You may get some
ideas from this example and use its technique to use PrintToDevices to print
each cop… -
Use the Variable's OnCalc event, as it fires early enough to perform this
operation. I coded this in the main RAP demo #12 by adding a variable to the
detail and coding the OnCalc:
begin
Value := plStock['Price_Chg'];
… -
The pass through function will execute inside the same thread as the report.
If you access any global singleton objects in the pass through function
inside this thread, then you'll need to add a critical section to make the
singleton … -
Yes, pass the Report object in the pass through function as a parameter.
There is a TraParamList parameter that you need to use. There is an example
of this used in the demo below. It does have a pass through function that
receives th… -
Bernd,
Can you send us an example that gives an AV at runtime using RB 7.02 after
editing the SQL text? Send a sample project to support@digital-metaphors.com
and we will research the issue.
Cheers,
J… -
The demo is an adaptaion of one of our standard autosearch demos. The
difference is that instead of adding to the WHERE clause of a TQuery, it
adds to a dataview's SQL object. Try using the RAP global OnCreate event to
create the aut… -
You can't use autosearch criteria in a dataview where the SQL is edited.
However you can create autosearch fields. I'd like to give a brief
background of the objects involved. Autosearch criteria are persistent and
saved in a dataview…