Problem creating dynamic report via code

Hi,
I am using the example in the programmers guide on page 23 to dynamicly print a tdataset.
The problem is the tdataset can have different fields each time (its a query analyser)
Anyway the example works, but I am having problems converting the size of the fields in the tdataset so they work on the report.
for example I might have a field that is a varchar(50), how can I tell my frxmemo to be the same size as my data?

basicly I want to execut a query like this select * from sometable and be able to display the result set in the report.

Thanks,

Tony

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.