using a datamodule

mierlpmierlp Netherlands
edited 2:49PM in FastReport 3.0
hi,

i'm testing Fastreport and i must say...looks very..very good....
But i have 2 questions....

Till now i'm using quickreports and it''s possible to use the f12 you can
put into the uses section a refer to a datamodule.

Question 1:
Within fastreport i can't find it and i must put a frxAdoDatabase
and frxAdoTable. But the tables in my datamodule contains several
lookup fields....so i don't want to create them in the frxAdoTable.

Is it possible to refer to a datamodule and where can i find it.


Question 2:
Contains FastReport default a 2D barcode ?


Greetz Peter

Comments

  • edited January 2006
    Answer 1:
    Yes it is possible. Just put a frxDBDataset and set the dataset to TAdoDataset.
    You didn''t need to define the Lookup/Calculated again. All field (data, lookup and calculated) automatic appear in frxDBDataset.

    If your Tadodataset/Tadotable (or any dataset) located in Data Module you just need to add the data module in the form (Press Alt F11 and select the Data module).

    Answer 2:

    I think FR have no support for 2D but you can use an ActiveX component that provide 2D barcode.
  • mierlpmierlp Netherlands
    edited 2:49PM
    hi,

    Do i still need to add a FastReport ADOdatabase and ADOtable
    component to the report because otherwise i can't see my
    fields from the datamodule.

    What i did :
    1. on the main form put a frxDBDataset and set frxDBDataset.Dataset to my
    table (tbl_ticket) on the datamodule ( is see the fields now)

    2. on the main form put a frxReport and set frxReport.Dataset to frxDBDataset

    3. right clik on the frxReport. Pressing Alt F11 let me nothing select but only
    got the message that all modules already added. For making my fields
    visible on my frxReport i have to add a ADOdatabase and ADOtable.

    What am i doing wrong at this point because when adding a ADOdatabase i have
    to select the complete path where the database can be found, and that's not
    what i want.
  • edited 2:49PM
    mierlp wrote:
    1. on the main form put a frxDBDataset and set frxDBDataset.Dataset to my
        table (tbl_ticket) on the datamodule ( is see the fields now)
    Right.
    mierlp wrote:
    2. on the main form put a frxReport and set frxReport.Dataset to frxDBDataset
    a. Put frxReport and don't set frxReport.Dataset (just let it blank!).
    c. Put frxDBDataset then set frxDBDataset.Dataset to your delphi Dataset
    mierlp wrote:
    3. right clik on the frxReport. Pressing Alt F11 let me nothing select but only
        got the message that all modules already added. For making my fields
        visible on my frxReport i have to add a ADOdatabase and ADOtable.
    a. Double click frxReport to open it.
    b. Click menu Report-Data.. you will see your frxDBDataset and select it.
    c. Now, on Data tree you see all the field from your dataset (View-toolbar-data tree).
  • mierlpmierlp Netherlands
    edited 2:49PM
    Hi,

    Great...thanks...this is where i was looking for.

    Now i'm going to buy this great report tool...it's much
    better the quick reports.

    Thanks again
    Peter

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.