Can help me?

Can help me?
I created a VCL Application Rest with methods that reads the database and turns the dataset into a PDF (Streamer) to the client side.
If I will not expose datasets, access components (firedac) can stay in TDataModule?
This TDataModule will be recreated every method call?
I ask because when the method is called while the server presents violation errors.

Thank you

Comments

  1. I want to use a report (QuickReport) with db controls pointing to a field that is inside the TServerMethod class. But Delphi does not recognize. Example:
    TServerMethods.FDQuery.FieldByName ('xyz'). AsString

    ReplyDelete
  2. Why don't just return a TDataSet and hook it in the report?

    ReplyDelete
  3. Solution accept: The rest server call dll. Dll save pdf in disc. Rest get file and save in memory streamer, return to client side tstream. Client side show pđf.

    ReplyDelete

Post a Comment