Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-09

LazReport

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Hew Lines

I'm trying to use LazReport to design a small report to print a formatted list of data contained in a two-dimensional string array of 99 records, each containing 17 data elements. I know I can load them into a table and use the table if I have to, but I have been trying to use the frUserDataSet control and am getting nowhere with it. I have the Lazarus wiki document on LazReport, the Developers Manual for FreeRFeport 2.32 and also the Fast Report 4 Users Manual and I am floundering here. Can anyone give me some direction where to go ?

Many thanks

Hew Lines

Reply by email

Reinier Olislagers
to Hew Lines
Hew Lines wrote 5 lines
I'm trying to use LazReport to design a small report to print a formatted list of data contained in a two-dimensional string array of 99 records, each containing 17 data elements. I know I can load them into a table and use the table if I have to, but I have been trying to use the frUserDataSet control and am getting nowhere with it.

What about including some code? What does "getting nowhere" mean? Error messages? Crashes? Your cat running off with your rabbit?

Have never worked with LazReport, but I'm sure the people who have would appreciate it, as they can hopefully spot what's wrong.

http://catb.org/~esr/faqs/smart-questions.html

Reply by email

Hew Lines
to Reinier Olislagers

Reinier that is part of the problem. I have no code ! I am trying to use the TfrUserDataSet control which, according to all documentation I have, should allow me to use a string array or string list as the data source for a report. However, I am unable to get started. I have no idea how to "link" the array or string list to the dataset. Nothing"crashes" I am jusy unable to figure out how to display the data elements in the string array in the fields of the Data Bands on the report. I'm sure it is a "concept" problem and that I am just missing that important first step of figuring out how to link the data source to the data set and I can't seem to find it in any of the docs that I have.

Hew

Reinier Olislagers wrote 20 lines
On 29/09/2013 19:49, Hew Lines wrote: > I'm trying to use LazReport to design a small report to print a > formatted list of data contained in a two-dimensional string array of 99 > records, each containing 17 data elements. I know I can load them into a > table and use the table if I have to, but I have been trying to use the > frUserDataSet control and am getting nowhere with it. What about including some code? What does "getting nowhere" mean? Error messages? Crashes? Your cat running off with your rabbit? Have never worked with LazReport, but I'm sure the people who have would appreciate it, as they can hopefully spot what's wrong. http://catb.org/~esr/faqs/smart-questions.html -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Michael Schneider
to Hew Lines
Hew Lines wrote 10 lines
Reinier that is part of the problem. I have no code ! I am trying to use the TfrUserDataSet control which, according to all documentation I have, should allow me to use a string array or string list as the data source for a report. However, I am unable to get started. I have no idea how to "link" the array or string list to the dataset. Nothing"crashes" I am jusy unable to figure out how to display the data elements in the string array in the fields of the Data Bands on the report. I'm sure it is a "concept" problem and that I am just missing that important first step of figuring out how to link the data source to the data set and I can't seem to find it in any of the docs that I have.

Here?s a tutorial
LazReport, local variables and StringGrid

http://www.google.de/url?sa=t&rct=j&q=&esrc=s&source=web&cd=5&ved=0CFwQFjAE&url=http%3A%2F%2Ffossies.org%2Flinux%2Fmisc%2Flazarus-1.0.12-0.zip%3Aa%2Flazarus%2Fcomponents%2Flazreport%2Fdoc%2Ftutorials%2Fstringgrid%2Fen%2FTutorial%2520LazReport%2520and%2520StringGrid.pdf&ei=065JUqy7GcPdtAbF3YDwBQ&usg=AFQjCNEY0TS_zDONFtNlr0-2jVGgL-OIWw&sig2=6RZTwvdfMCSWSB1nAcXEEQ&bvm=bv.53217764,d.Yms

Reply by email

Hew Lines
to Michael Schneider

Many thanks Michael. I suspect this is exactly what I was looking for.

Hew

Michael Schneider wrote 22 lines
Am Monday 30 September 2013 18:10:35 schrieb Hew Lines: > Reinier that is part of the problem. I have no code ! I am trying to > use the TfrUserDataSet control which, according to all documentation I > have, should allow me to use a string array or string list as the data > source for a report. However, I am unable to get started. I have no idea > how to "link" the array or string list to the dataset. Nothing"crashes" > I am jusy unable to figure out how to display the data elements in the > string array in the fields of the Data Bands on the report. I'm sure it > is a "concept" problem and that I am just missing that important first > step of figuring out how to link the data source to the data set and I > can't seem to find it in any of the docs that I have. Here?s a tutorial LazReport, local variables and StringGrid http://www.google.de/url?sa=t&rct=j&q=&esrc=s&source=web&cd=5&ved=0CFwQFjAE&url=http%3A%2F%2Ffossies.org%2Flinux%2Fmisc%2Flazarus-1.0.12-0.zip%3Aa%2Flazarus%2Fcomponents%2Flazreport%2Fdoc%2Ftutorials%2Fstringgrid%2Fen%2FTutorial%2520LazReport%2520and%2520StringGrid.pdf&ei=065JUqy7GcPdtAbF3YDwBQ&usg=AFQjCNEY0TS_zDONFtNlr0-2jVGgL-OIWw&sig2=6RZTwvdfMCSWSB1nAcXEEQ&bvm=bv.53217764,d.Yms -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Hew Lines
to Michael Schneider: Here?s a tutorial LazReport, local variables and StringGrid…

Michael ...... Thanks very much. This was EXACTLY what I needed. I have everything working as I wanted now. Thanks so much for your help.

Regards

Hew

Michael Schneider wrote 22 lines
Am Monday 30 September 2013 18:10:35 schrieb Hew Lines: > Reinier that is part of the problem. I have no code ! I am trying to > use the TfrUserDataSet control which, according to all documentation I > have, should allow me to use a string array or string list as the data > source for a report. However, I am unable to get started. I have no idea > how to "link" the array or string list to the dataset. Nothing"crashes" > I am jusy unable to figure out how to display the data elements in the > string array in the fields of the Data Bands on the report. I'm sure it > is a "concept" problem and that I am just missing that important first > step of figuring out how to link the data source to the data set and I > can't seem to find it in any of the docs that I have. Here?s a tutorial LazReport, local variables and StringGrid http://www.google.de/url?sa=t&rct=j&q=&esrc=s&source=web&cd=5&ved=0CFwQFjAE&url=http%3A%2F%2Ffossies.org%2Flinux%2Fmisc%2Flazarus-1.0.12-0.zip%3Aa%2Flazarus%2Fcomponents%2Flazreport%2Fdoc%2Ftutorials%2Fstringgrid%2Fen%2FTutorial%2520LazReport%2520and%2520StringGrid.pdf&ei=065JUqy7GcPdtAbF3YDwBQ&usg=AFQjCNEY0TS_zDONFtNlr0-2jVGgL-OIWw&sig2=6RZTwvdfMCSWSB1nAcXEEQ&bvm=bv.53217764,d.Yms -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email