digitalmetaphors
Comments
-
I ran your example. What I see is that you are editing the SQL text. This is
not going to work in conjunction with autosearch criteria on the dataview.
Don't edit the SQL by setting the SQL text. You should dynamically create
more sea… -
Place break points in every one of your pass through function's code to make
sure they are firing. Then you can see in which one it is AV'ing
I didn not intend to direct you to change our source. Do not comment out the
exit call. I ju… -
The first thing to do before setting the SQLText is to set the EditSQLasText
property on the TdaSQL object to true.
There is an Exit call in the setter. Try pointing your library path to
RBuilder/Source temporarily and place a b… -
You'll need to call Report.Cancel to stop the report from generating. Then
you can try closing the preview form. I tried it, but I needed to use a
timer to wait until after the form shown and was able to be closed.
procedure TFo… -
Sorry, Int64 is not supported in RAP. We rely on Delphi's variant type and
Int64 is not supportable in RAP with variants at this time.
--
Cheers,
Jim Bennett
Digital Metaphors
-
In RAP, reference the Report.PreviewFormSettings.ZoomPercentage and
WindowState properties accordingly. Use the
Report.OnAssignPreviewFormSettings event or any earlier event, such as the
global OnCreate. You'll need RB 7.0 or greater… -
Hey Chris, I totally forgot about that utility:-)
Cheers,
Jim Bennett
Digital Metaphors
-
Forgot to mention that once you have the text from the RAP event handler,
you can read/write it to file using a TStringlist. Going the other way is
just as easy, use the same technique shown in the example to load the RAP
code from te… -
It is stored in binary format in the acsii report template so that won't
help. What you can do is access the RAP text using Delphi code. Here is an
example that finds a group header band before print event by name and also
shows how t… -
Next is a procedure and is not made visible in RAP through the RAP RTTI for
TppDataPipeline ancestor. EOF is a property and is made available through
the RAP RTTI for the TppDBPipeline descendent. You'll have to create a RAP
pass thr… -
Ok, what you'll have to do is create a new class. Register this class so
that RAP can use RTTI to use its published properties. This class is going
to be a TppCommunicator descendent. Now, the goal is to listen to event
using the comm… -
Yes, but you'll need to create a RAP pass through function. See the main
reports demo project. Report #116 skips records. However, it calls the
SkipBack method on the pipeline and this isn't surfaced in RAP. Probably the
best thing to… -
Normally, you can print pages to different bins by setting the printersetup
on each page to be different. An article is posted below describing this.
Now, you have copies. To detemine which pages are copies, you can examine
this… -
I get an error when trying to set Variable1.Value :='SomeString' in RAP when
the report is exectuing. We'll have to research it. For now, you should be
able to work around it by setting AsString:
Variable1.AsString := InputBox('… -
No, you can't stop the report from creating the intended output device
iniside of RAP. RAP executes when the report is generating for a device.
RAP's design is such that is is specifically for manipulating the report as
it is generati… -
This is not a knwon issue. What version of RB are you using? Do you have
groups? Is the group resetting the value? Can you test with RB 7.02 to see
if the problem goes away? Can you send a minimal working example using
DBDEMOS data t… -
RAP executes inside of the call to Report.Print. There is no event that
fires before the report prints to allow/disallow the print process to
continue. An OnPrintQuery event much like the form's OnCloseQuery could be
placed on the ToD… -
Sorry, you'll only be able to set the subreport's visibility in the main
report's DetailBand.BeforePrint event. After that it is too late, so trying
to set it to not be visible will not work inside the subreport's events.
… -
If you can reproduce the problem outside of your application then le tus
know and send us an example-Thanks.
Cheers,
Jim Bennett
Digital Metaphors
-
Create a simple report with just one event handler call to get the field
value. Then place a breakpoint in your pipeline's get field methods to see
which one it is calling. This way you can work backwards through the call
stack to see… -
Try using a Delphi BeforePrint event handler. This way you can step into the
call to get the field value to see what is happening. Most likely, the data
is an integer or some other type and when you have a TppField of type
dtString an… -
What is the field type on your field in the data pipeline? Click on the
pipeline in delphi to view the field editor to select the TppField in the
object inspector. Then try a
ShowMessage(Report.DataPipeline['SampleType']); in RAP to … -
Yes, you can filter from RAP, although you'll have to create a RAP pass
through function to do this. Use the same event in RAP as you did in Delphi
which worked, however, you'll have to call a pass through function (pass the
'xyz = 12… -
The OnCalcs will fire before the events on the other controls in the same
band, so you should be safe with this approach.
Cheers,
Jim Bennett
Digital Metaphors
-
The percentage variable will calculate on every traversal, but it shouldn't
matter, as it relies on the other two variables in the summary band. The two
total variables in the summary band should and do print the correct totals.
The p… -
If you have a header, detail, footer, summary report, then simply use 3
TppVariables in the summary band. Sorry if I got you confused, I thought the
report was going to be more complicated with subreports/groups and such.
You do… -
You'll have to create a RAP pass through function in order to access the
parameters that you set on the stored proc. There are examples of creating
RAP pass through funciton in the RAP tutorials and demo in the RBuilder
installation.<… -
Do you mean autosearch? Then call Report.GetAutosearchDescriptionLines,
passing a TppMemo.Lines object. See the autosearch demos for an example of
this.
Cheers,
Jim Bennett
Digital Metaphors
Yes, a pass through function will need to be used to get the record count.
We intentionally left this out of RAP because we didn't want your end users
to have this ability to call RecordCount, because it is a slow operation as
it requ…Here is a down and dirty way to do it. Report.CachePages is true.
http://www.digital-metaphors.com/tips/NewPageOn5thFromLastRecord.zip
…