Re: [Lazarus] LazReport bug?

2015-09-08 Thread Craig Goodyear

On 09/07/2015 11:28 PM, Jesus Reyes A. wrote:

En Mon, 07 Sep 2015 14:25:52 -0500, Craig Goodyear
 escribió:


With the new version, the name of the object placed on the report is
shown instead of the value of the name field from the sql statement.

Has the new version of LazReport reserved the word name to refer to
the name of report objects, or is this a bug in LazReport?


Yes. At some point, the published properties of objects started to
become available in scripts. It appears that 1.2 version already
included that functionality, probably there were some bugs that
prevented resolving the 'name' property properly in 1.2 but was fixed
later in the 1.4 version.

Jesus Reyes A.


Thank you for the response.

Craig


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport bug?

2015-09-07 Thread Jesus Reyes A.
En Mon, 07 Sep 2015 14:25:52 -0500, Craig Goodyear   
escribió:


I have recently upgraded from Lazarus 1.2 to Lazarus 1.4.2. Compiling a  
program with version 1.4.2 breaks a report written with version 1.2. One  
of field names in the sql statement that LazReport uses is name.


With the new version, the name of the object placed on the report is  
shown instead of the value of the name field from the sql statement.


Has the new version of LazReport reserved the word name to refer to the  
name of report objects, or is this a bug in LazReport?




Yes. At some point, the published properties of objects started to become  
available in scripts. It appears that 1.2 version already included that  
functionality, probably there were some bugs that prevented resolving the  
'name' property properly in 1.2 but was fixed later in the 1.4 version.


Jesus Reyes A.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] LazReport bug?

2015-09-07 Thread Craig Goodyear
I have recently upgraded from Lazarus 1.2 to Lazarus 1.4.2. Compiling a 
program with version 1.4.2 breaks a report written with version 1.2. One 
of field names in the sql statement that LazReport uses is name.


With the new version, the name of the object placed on the report is 
shown instead of the value of the name field from the sql statement.


Has the new version of LazReport reserved the word name to refer to the 
name of report objects, or is this a bug in LazReport?



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - Feature questions

2015-07-18 Thread Michael Van Canneyt



On Sat, 18 Jul 2015, Bob B. wrote:


The primary save format will be JSON, which can be converted to anything  you 
want.

How?  Is there some utility that does that?  Or do I misunderstand what you 
meant?


The finished report can be saved to JSON file. 
It can be rendered to a printer canvas.

But you can also make a utility that prints this file to a label-printer.



Also, will users still be able to design their own reports like they can with 
LazReport?


Yes, obviously.

Michael.--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - Feature questions

2015-07-18 Thread Bob B.
 The primary save format will be JSON, which can be converted to anything  
 you want.
How?  Is there some utility that does that?  Or do I misunderstand what you 
meant?
Also, will users still be able to design their own reports like they can with 
LazReport?
Thanks.
Bob B.
 


 On Friday, July 10, 2015 1:20 AM, Michael Van Canneyt 
mich...@freepascal.org wrote:
   

 

On Fri, 10 Jul 2015, Koenraad Lelong wrote:

 Op 10-07-15 om 09:36 schreef Michael Van Canneyt:
 
 The primary save format will be JSON, which can be converted to anything
 you want.

 I don't know much about JSON, but I'm about to start an application that 
 writes to a label-printer (= small paper-sizes). Would it be possible to 
 generate output for that, without manual intermediate steps ?

I don't see why not.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


  --
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - Feature questions

2015-07-10 Thread Koenraad Lelong

Op 10-07-15 om 09:36 schreef Michael Van Canneyt:


The primary save format will be JSON, which can be converted to anything
you want.


I don't know much about JSON, but I'm about to start an application that 
writes to a label-printer (= small paper-sizes). Would it be possible to 
generate output for that, without manual intermediate steps ?


Koenraad.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - Feature questions

2015-07-10 Thread Tony Whyman
Well - good luck - Lazreport took a long time to get stable and 
certainly contains many idiosyncrasies that could benefit from a 
redesign. But please ensure that there is a clear migration path to any 
new reporting engine.


Tony Whyman
MWA

On 09/07/15 20:45, Michael Van Canneyt wrote:

Just an opinion:
I am working with Graeme Geldenhuys to create a reporting engine from 
scratch.
I think Lazreport's design contains some fundamental flaws, which can 
only be remedied by re-implementing a reporting engine from scratch.


Michael



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - Feature questions

2015-07-10 Thread Vincenzo Campanella
Il 09.07.2015 21:45, Michael Van Canneyt ha scritto:

 Just an opinion:
 I am working with Graeme Geldenhuys to create a reporting engine from
 scratch.
 I think Lazreport's design contains some fundamental flaws, which can
 only be remedied by re-implementing a reporting engine from scratch.


That's great :)

I hope that direct exports to PDF and LibreOffice (.odt and .ods) or
eventually M$ Office (.docx and .xlsx) will be available on all
platforms... :)

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - Feature questions

2015-07-10 Thread Michael Van Canneyt



On Fri, 10 Jul 2015, Vincenzo Campanella wrote:


Il 09.07.2015 21:45, Michael Van Canneyt ha scritto:


Just an opinion:
I am working with Graeme Geldenhuys to create a reporting engine from
scratch.
I think Lazreport's design contains some fundamental flaws, which can
only be remedied by re-implementing a reporting engine from scratch.



That's great :)

I hope that direct exports to PDF and LibreOffice (.odt and .ods) or
eventually M$ Office (.docx and .xlsx) will be available on all
platforms... :)


The primary save format will be JSON, which can be converted to anything you 
want.
We're not making any assumptions about the final output. 
The structure will be such that adding exports should not be a problem.

We have at least PDF planned, for use in Web applications.

In fact, FPC's TTF/PDF support is being worked on as I write this.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - Feature questions

2015-07-10 Thread Michael Van Canneyt



On Fri, 10 Jul 2015, Koenraad Lelong wrote:


Op 10-07-15 om 09:36 schreef Michael Van Canneyt:


The primary save format will be JSON, which can be converted to anything
you want.


I don't know much about JSON, but I'm about to start an application that 
writes to a label-printer (= small paper-sizes). Would it be possible to 
generate output for that, without manual intermediate steps ?


I don't see why not.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] LazReport - Feature questions

2015-07-09 Thread Gabor Boros

Hi All,

Earlier I think will use LazReport for my new project. Implemented Child 
feature for my needs but now see many other lack of features, problems, 
reported bugs.


Features for example...
- Page, Band not have Frames and FillColor properties
- FillColor not have (Brush.Style) property
- Stretched not working with Line
- Frames not have Color, Style, Width properties/side
- Keep together feature for Band (e.g. Parent and Child(s))
- In Designer Text object not resized when Font changed
- On Preview can scroll below the page
- On Preview Find highlight the whole text of view and only the first 
occurence

- Barcode not have Font property

Reported bugs for example...
http://bugs.freepascal.org/view.php?id=19996
http://bugs.freepascal.org/view.php?id=26263

How easy or hard or impossible to implement the above features into 
LazReport? In the main source not in a fork. Seeing the above features 
from LazReport POV better for me if create a report engine from scratch 
which fit my needs? Opinions?


Gabor

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - Feature questions

2015-07-09 Thread Michael Van Canneyt



On Thu, 9 Jul 2015, silvioprog wrote:


On Thu, Jul 9, 2015 at 4:45 PM, Michael Van Canneyt mich...@freepascal.org 
wrote:
[...]
  I think Lazreport's design contains some fundamental flaws, which can 
only be remedied by re-implementing a reporting engine from scratch.


This is a very good new! I smell TFPReport in the air... =)


Right on :-)

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - Feature questions

2015-07-09 Thread silvioprog
On Thu, Jul 9, 2015 at 4:45 PM, Michael Van Canneyt mich...@freepascal.org
wrote:
[...]

 I think Lazreport's design contains some fundamental flaws, which can only
 be remedied by re-implementing a reporting engine from scratch.


This is a very good new! I smell TFPReport in the air... =)

--
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - Feature questions

2015-07-09 Thread Michael Van Canneyt



On Thu, 9 Jul 2015, Gabor Boros wrote:


Hi All,

Earlier I think will use LazReport for my new project. Implemented Child 
feature for my needs but now see many other lack of features, problems, 
reported bugs.


Features for example...
- Page, Band not have Frames and FillColor properties
- FillColor not have (Brush.Style) property
- Stretched not working with Line
- Frames not have Color, Style, Width properties/side
- Keep together feature for Band (e.g. Parent and Child(s))
- In Designer Text object not resized when Font changed
- On Preview can scroll below the page
- On Preview Find highlight the whole text of view and only the first 
occurence

- Barcode not have Font property

Reported bugs for example...
http://bugs.freepascal.org/view.php?id=19996
http://bugs.freepascal.org/view.php?id=26263

How easy or hard or impossible to implement the above features into 
LazReport? In the main source not in a fork. Seeing the above features from 
LazReport POV better for me if create a report engine from scratch which fit 
my needs? Opinions?


Just an opinion:
I am working with Graeme Geldenhuys to create a reporting engine from scratch.
I think Lazreport's design contains some fundamental flaws, which can only be 
remedied by re-implementing a reporting engine from scratch.


Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] lazreport: how to use global report variables

2015-07-01 Thread Jesus Reyes A.
On Tue, 30 Jun 2015 10:35:54 -0500, Graeme Geldenhuys  
mailingli...@geldenhuys.co.uk wrote:



On 2015-06-30 14:03, Graeme Geldenhuys wrote:
I've used File - Variable List to define a new variable (just the  
name).



Digging deeper into the LazReport code, I finally found the solution.

Even though you setup a variable, you must not refer to it via the
Scripts.Values[] or Variables.Values[] properties. Go figure!

Instead you use the Values.FindVariables() method.

  FRPrint.Values.FindVariable('HideKlas').Field := '1';



Those are not global variables. They are report variables.

I think the easier way to modify global variables is through the  
frVariables object

ej.

frVariables['HideKlas'] := 1;




For more details of what I've done, see the Lazarus Forum post.
  http://forum.lazarus.freepascal.org/index.php/topic,28922.0.html


Now this begs the question... What the hell does Scripts.Values[] and
Variables.Values[] actually do?


They do the same thing they do for any TStrings list, ie. Assign values to  
supposedly existing names , for they to work you have to have a list  
like:


name1=value1
name2=value2
etc.

But in LazReport this TStrings list functionality is not used.

Report.Variables holds the list of variables and variables categories that  
you have defined in the Report (usually using the report designer gui).  
Variables categories can only be used as distinctive tags for a group of  
variables, and I guess that is the reason why there are a Values object  
too, which btw has a list of only variables.


I was not able to find a Report.Scripts property or field, maybe you mean  
Report.Script? in that case supposedly it holds the script to be run as  
BeforePrint script.


Jesus Reyes A.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] lazreport: how to use global report variables

2015-07-01 Thread Jesus Reyes A.
En Wed, 01 Jul 2015 17:52:57 -0500, Graeme Geldenhuys  
mailingli...@geldenhuys.co.uk escribió:




On 2015-07-01 21:47, Jesus Reyes A. wrote:


Those are not global variables. They are report variables.


In the context of a report, they are the same thing to me. You define a
variable via the Report GUI Designer (I still don't know how to do it
from code), that variable is then available for use anywhere in your
report. ie: gloabal ;-)


:)
Yes, you can consider them as global if you so desire. However they exists  
only in your report, where they were defined. The frVariables list however  
can be used by n-number of reports in your application. This is why I  
think of them as global






I think the easier way to modify global variables is through the
frVariables object
ej.

frVariables['HideKlas'] := 1;


I'll take a look at that, thanks.


It seems possible to have report and global variables named the same,  
however I have not investigated who takes precedence, I would guess report  
variables are found first, but I'm not sure TBH.






But in LazReport this TStrings list functionality is not used.


Huh? You lot me there. So if they are not used, why do those properties
still exist in TfrReport?


They are not specific to LazReport, this is basic functionality of every  
TStringList, just because they descend from TStrings. Values and Names are  
public properties of TStrings, how can one hide those properties in a  
instance of TStringList?, you can't, so LazReport also can't. :D





I was not able to find a Report.Scripts property or field, maybe you  
mean

Report.Script?


Sorry, it was a typo. I meant Report.Script.

As far as I understand, LazReport is based on some open source version
of FastReport. Due to the lack of documentation (or updated
documentation) of LazReport, I looked at the documentation for
FastReport and tried to use some if what it suggests. But it seems much
of it doesn't translate to LazReport.


Yes, probably, however one could find that they have also many things on  
common.




Here is the URL of FastReport I looked at.

https://www.fast-report.com/documentation/ProgMan/index.html?adding_a_variable.htm

I worked through the whole Working with a list of variables section.



frxReport1.Variables['My Variable 1'] := 10; and likewise
Variable := frxReport1.Variables.Add and
Variable := frxReport1.Variables.Insert(1);

Wouldn't work on LazReport as here frxReport1.Variables is just a mere  
mortal TStringList which already have a default property: Strings[]  
indexed by integer, This part is in LazReport a little mess :), I think  
FastReport guys noted this and they fixed the situation in FastReport.




Regards,
  - Graeme -




--
Usando el cliente de correo de Opera: http://www.opera.com/mail/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] lazreport: how to use global report variables

2015-07-01 Thread Graeme Geldenhuys
Hi Jesus,

Thanks for taking the time to reply. It is much appreciated.


On 2015-07-01 21:47, Jesus Reyes A. wrote:
 
 Those are not global variables. They are report variables.

In the context of a report, they are the same thing to me. You define a
variable via the Report GUI Designer (I still don't know how to do it
from code), that variable is then available for use anywhere in your
report. ie: gloabal ;-)


 I think the easier way to modify global variables is through the  
 frVariables object
 ej.
 
 frVariables['HideKlas'] := 1;

I'll take a look at that, thanks.


 But in LazReport this TStrings list functionality is not used.

Huh? You lot me there. So if they are not used, why do those properties
still exist in TfrReport?


 I was not able to find a Report.Scripts property or field, maybe you mean  
 Report.Script?

Sorry, it was a typo. I meant Report.Script.

As far as I understand, LazReport is based on some open source version
of FastReport. Due to the lack of documentation (or updated
documentation) of LazReport, I looked at the documentation for
FastReport and tried to use some if what it suggests. But it seems much
of it doesn't translate to LazReport.

Here is the URL of FastReport I looked at.

https://www.fast-report.com/documentation/ProgMan/index.html?adding_a_variable.htm

I worked through the whole Working with a list of variables section.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] lazreport: how to use global report variables

2015-06-30 Thread Graeme Geldenhuys
Hi,

I have a print dialog, shown before the report is generated. The user
can make some selections. Based on that, I want to set the value of a
global variable, then use that variable to decide if a column of data
must be visible or not.

I've used File - Variable List to define a new variable (just the name).

I then double clicked on a header memo field and enabled the Script
checkbox, and typed in the following code in the Script box:

===
if [ HideKlas] = '0' then
  Visible := True
else
  Visible := False;
===

In my *.pas unit I temporarily tried to set a hard-coded value of the
HideKlas variable to see what happens in the report. I tried both the
values '0' and '1'.

===
If FRPrint.PrepareReport then
begin
  FRPrint.Variables.Values['HideKlas'] := '1';  // for testing only
  FRPrint.Preview := FAfdrukForm.PrintPanel;
  FRPrint.ShowPreparedReport;
end;
===


No matter what I do, the header (memo) field is now _always hidden_.
Changing the hard-coded value of the variable doesn't seem to make any
difference.

Before any of the above script changes the report worked, and the header
text was visible. But I can't seem to make that visibility a dynamic option.

Any tips would be much appreciated.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] lazreport: how to use global report variables

2015-06-30 Thread Graeme Geldenhuys
On 2015-06-30 14:03, Graeme Geldenhuys wrote:
 ===
 If FRPrint.PrepareReport then
 begin
   FRPrint.Variables.Values['HideKlas'] := '1';  // for testing only
   FRPrint.Preview := FAfdrukForm.PrintPanel;
   FRPrint.ShowPreparedReport;
 end;
 ===


I've even tried removing the HideKlas variable completely, then do
something like this in the .pas unit.

  (FRPrint.Pages.Pages[0].FindObject('memo5') as TfrMemoView).Visible :=
False;
  FRPrint.Preview := FAfdrukForm.PrintPanel;
  FRPrint.ShowPreparedReport;

But not even that works. In this case the memo5 is always shown, as if I
didn't have that extra line of code.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] lazreport: how to use global report variables

2015-06-30 Thread Graeme Geldenhuys
On 2015-06-30 14:03, Graeme Geldenhuys wrote:
 I've used File - Variable List to define a new variable (just the name).


Digging deeper into the LazReport code, I finally found the solution.

Even though you setup a variable, you must not refer to it via the
Scripts.Values[] or Variables.Values[] properties. Go figure!

Instead you use the Values.FindVariables() method.

  FRPrint.Values.FindVariable('HideKlas').Field := '1';


For more details of what I've done, see the Lazarus Forum post.
  http://forum.lazarus.freepascal.org/index.php/topic,28922.0.html


Now this begs the question... What the hell does Scripts.Values[] and
Variables.Values[] actually do?


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Questions

2015-05-27 Thread Jesus Reyes A.

En Mon, 25 May 2015 21:39:41 -0500, steveg ste...@nevets.com.au escribió:


Thank you Michael.

I have then following problems currently -

1:
I am placing a subreport in a Group footer (to run a charges query for  
each client in group break)
It would appear that the subreport is run 'after' accessing all other  
fields in the footer, no matter what it is named, or where it is  
placed.  I would like to be able to specify when it runs in relation to  
the other fields (to be able to use it for further calculations).

Is this at all possible ?


Is not possible in current implementation. Name or Position (x,y) have no
effect, however z-order (relative position between objects) might help.
It even seems that as soon a subreport is found any remaining object is  
skipped.




2:
All objects seem to be accessed in the order they are saved in the lrf  
file, not by Name (alpha) or position - this makes it problematic when  
using them for calculations.
Is it possible to have the running report fill in the fields by alpha  
name position instead ?


Not in the current implementation.



3:
Deleting an object from a report (memo / band / subreport) will often  
cause the program to abort.
I haven't yet been able to conclude precisely what its related to, but  
still watching.

Does anybody else have this issue ?



I haven't seen it. Feel free to submit a bug report with a sample project.

Jesus Reyes A.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Questions

2015-05-27 Thread steveg

Thank you Jesus
  I will attempt workarounds a I can, and will try to narrow down the 
'delete' cause



On 27/05/15 23:29, Jesus Reyes A. wrote:
En Mon, 25 May 2015 21:39:41 -0500, steveg ste...@nevets.com.au 
escribió:



Thank you Michael.

I have then following problems currently -

1:
I am placing a subreport in a Group footer (to run a charges query 
for each client in group break)
It would appear that the subreport is run 'after' accessing all other 
fields in the footer, no matter what it is named, or where it is 
placed.  I would like to be able to specify when it runs in relation 
to the other fields (to be able to use it for further calculations).

Is this at all possible ?


Is not possible in current implementation. Name or Position (x,y) have no
effect, however z-order (relative position between objects) might help.
It even seems that as soon a subreport is found any remaining object 
is skipped.




2:
All objects seem to be accessed in the order they are saved in the 
lrf file, not by Name (alpha) or position - this makes it problematic 
when using them for calculations.
Is it possible to have the running report fill in the fields by alpha 
name position instead ?


Not in the current implementation.



3:
Deleting an object from a report (memo / band / subreport) will often 
cause the program to abort.
I haven't yet been able to conclude precisely what its related to, 
but still watching.

Does anybody else have this issue ?



I haven't seen it. Feel free to submit a bug report with a sample 
project.


Jesus Reyes A.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Questions

2015-05-25 Thread Michael Van Canneyt



On Mon, 25 May 2015, steveg wrote:

Could somebody please let me know the correct place to post questions about 
LazReport ?

Not sure if there is a separate group / list for this


No, posting them here is good.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Questions

2015-05-25 Thread steveg

Thank you Michael.

I have then following problems currently -

1:
I am placing a subreport in a Group footer (to run a charges query for 
each client in group break)
It would appear that the subreport is run 'after' accessing all other 
fields in the footer, no matter what it is named, or where it is 
placed.  I would like to be able to specify when it runs in relation to 
the other fields (to be able to use it for further calculations).

Is this at all possible ?

2:
All objects seem to be accessed in the order they are saved in the lrf 
file, not by Name (alpha) or position - this makes it problematic when 
using them for calculations.
Is it possible to have the running report fill in the fields by alpha 
name position instead ?


3:
Deleting an object from a report (memo / band / subreport) will often 
cause the program to abort.
I haven't yet been able to conclude precisely what its related to, but 
still watching.

Does anybody else have this issue ?

Many thanks


On 25/05/15 18:42, Michael Van Canneyt wrote:



On Mon, 25 May 2015, steveg wrote:

Could somebody please let me know the correct place to post questions 
about LazReport ?

Not sure if there is a separate group / list for this


No, posting them here is good.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] LazReport Questions

2015-05-24 Thread steveg
Could somebody please let me know the correct place to post questions 
about LazReport ?

Not sure if there is a separate group / list for this

Thanks - SteveG

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] LazReport - Child band feature

2014-11-05 Thread Gabor Boros

Hi All,

I want to see and use child bands in LazReport. Opened an issue in the 
bugtracker and attached diff files (used trunk 46747). Please review, 
try, comment.


http://bugs.freepascal.org/view.php?id=26996

Gabor

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - The paper ... has no defined rectangle!

2014-10-30 Thread zeljko

On 10/29/2014 09:11 PM, Gabor Boros wrote:

2014.10.29. 20:19 keltezéssel, zeljko írta:

Yes. CUPS-PDF. I can print from the report designer and IDE too.
Cross compiled i386-win32 application working also without explicitly
added printers4lazarus.


Don't know how it can work. Printer object comes from printer4lazarus.


Compiled to GTK2 and application start without error. Qt bug?
Every time I want to try a new thing with Qt found a problem. :-(

Wrote a message earlier with subject Text position in controls to the
list. Nobody answered. You have any suggestions from Qt POV?


I'm using Qt for production (commercial apps) on linux,win32 and mac and 
I don't have such problems. Please open separate issues about your 
problems and attach project examples, so I'll fix it.


zeljko


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - The paper ... has no defined rectangle!

2014-10-30 Thread Gabor Boros

2014.10.30. 8:01 keltezéssel, zeljko írta:

I'm using Qt for production (commercial apps) on linux,win32 and mac and
I don't have such problems. Please open separate issues about your
problems and attach project examples, so I'll fix it.


http://bugs.freepascal.org/view.php?id=26971

http://bugs.freepascal.org/view.php?id=26972

Gabor

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] LazReport - The paper ... has no defined rectangle!

2014-10-29 Thread Gabor Boros

Hi,

Want to try LazReport on Linux but get many paper errors at application 
start for (every?) paper size. Just start a new project drop a TfrReport 
to the main form and start the application. FPC 2.6.4 x86_64, trunk 
46697, Qt, Kubuntu 14.04 64bit.


Gabor
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - The paper ... has no defined rectangle!

2014-10-29 Thread zeljko

On 10/29/2014 05:42 PM, Gabor Boros wrote:

Hi,

Want to try LazReport on Linux but get many paper errors at application
start for (every?) paper size. Just start a new project drop a TfrReport
to the main form and start the application. FPC 2.6.4 x86_64, trunk
46697, Qt, Kubuntu 14.04 64bit.


And printers4lazarus package is included in your project ?
If yes, do you have any printer installed on your system ?

z.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - The paper ... has no defined rectangle!

2014-10-29 Thread Gabor Boros

2014.10.29. 18:25 keltezéssel, zeljko írta:

On 10/29/2014 05:42 PM, Gabor Boros wrote:

Hi,

Want to try LazReport on Linux but get many paper errors at application
start for (every?) paper size. Just start a new project drop a TfrReport
to the main form and start the application. FPC 2.6.4 x86_64, trunk
46697, Qt, Kubuntu 14.04 64bit.


And printers4lazarus package is included in your project ?


Added but nothing changed.


If yes, do you have any printer installed on your system ?


Yes. CUPS-PDF. I can print from the report designer and IDE too.
Cross compiled i386-win32 application working also without explicitly 
added printers4lazarus.


Gabor

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - The paper ... has no defined rectangle!

2014-10-29 Thread zeljko

On 10/29/2014 06:55 PM, Gabor Boros wrote:

2014.10.29. 18:25 keltezéssel, zeljko írta:

On 10/29/2014 05:42 PM, Gabor Boros wrote:

Hi,

Want to try LazReport on Linux but get many paper errors at application
start for (every?) paper size. Just start a new project drop a TfrReport
to the main form and start the application. FPC 2.6.4 x86_64, trunk
46697, Qt, Kubuntu 14.04 64bit.


And printers4lazarus package is included in your project ?


Added but nothing changed.


If it wasn't there then it crashed because of that.




If yes, do you have any printer installed on your system ?


Yes. CUPS-PDF. I can print from the report designer and IDE too.
Cross compiled i386-win32 application working also without explicitly
added printers4lazarus.


Don't know how it can work. Printer object comes from printer4lazarus.

zeljko


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - The paper ... has no defined rectangle!

2014-10-29 Thread Gabor Boros

2014.10.29. 20:19 keltezéssel, zeljko írta:

Yes. CUPS-PDF. I can print from the report designer and IDE too.
Cross compiled i386-win32 application working also without explicitly
added printers4lazarus.


Don't know how it can work. Printer object comes from printer4lazarus.


Compiled to GTK2 and application start without error. Qt bug?
Every time I want to try a new thing with Qt found a problem. :-(

Wrote a message earlier with subject Text position in controls to the 
list. Nobody answered. You have any suggestions from Qt POV?


Gabor

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] LazReport - How to subtotal or total a CALCULATED field?

2014-10-05 Thread Alejandro Gonzalo
This doesn't work:  [sum([dsbooks..CTR],MasterData11)]
where CTR is the calculated field.  Thanks.

A. G. --
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - Group bands

2014-09-25 Thread Alejandro Gonzalo
Since I only wanted a list of unique key fields, I didn't use a Master band.  
Is it mandatory to use one?

A. G.



On Wednesday, September 24, 2014 12:54 AM, Tony Whyman 
tony.why...@mccallumwhyman.com wrote:
 


Alejandro,

Group Headers do work - I use them myself. Looking at a known
working report, the condition field in the group header is linked to
field in the dataset used for the Master Data band. Maybe this is
where your problem lies.

Regards

Tony Whyman
MWA




On 24/09/14 00:01, Alejandro Gonzalo wrote:

I only wanted a list of unique entries for a key field.  So I selected the 
Group Header band and for Condition selected that key field.  I then inserted a 
Rectangular Object on the band and for dbfField selected the same key field.

But Preview showed only a blank page.  What else do I have to do?


Double karma for the best way to show the number of entries for each key field.


Thanks.



A. G.



--
___
Lazarus mailing list Lazarus@lists.lazarus.freepascal.org 
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - Group bands

2014-09-24 Thread Tony Whyman
Alejandro,

Group Headers do work - I use them myself. Looking at a known working
report, the condition field in the group header is linked to field in
the dataset used for the Master Data band. Maybe this is where your
problem lies.

Regards

Tony Whyman
MWA



On 24/09/14 00:01, Alejandro Gonzalo wrote:
 I only wanted a list of unique entries for a key field.  So I selected
 the Group Header band and for Condition selected that key field.  I
 then inserted a Rectangular Object on the band and for dbfField
 selected the same key field.
 But Preview showed only a blank page.  What else do I have to do?

 Double karma for the best way to show the number of entries for each
 key field.

 Thanks.

 A. G.


 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] LazReport - Group bands

2014-09-23 Thread Alejandro Gonzalo
I only wanted a list of unique entries for a key field.  So I selected the 
Group Header band and for Condition selected that key field.  I then inserted a 
Rectangular Object on the band and for dbfField selected the same key field.

But Preview showed only a blank page.  What else do I have to do?

Double karma for the best way to show the number of entries for each key field.

Thanks.


A. G.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport: TfrReport.LoadFromFile question

2014-08-26 Thread Bart
On 8/25/14, Jesus Reyes jesus...@yahoo.com.mx wrote:

 Please file a bug report, at least the unexistant .lrf case should trigger
 an exception.

Done: http://bugs.freepascal.org/view.php?id=26636
Test application attached.

Bart

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport: TfrReport.LoadFromFile question

2014-08-25 Thread Jesus Reyes
Please file a bug report, at least the unexistant .lrf case should trigger an 
exception.

Jesus Reyes A.



El Domingo, 24 de agosto, 2014 16:56:44, Bart bartjun...@gmail.com escribió:
 


Hi,

TfrReport.LoadFromFile does not raise an exception (or return ay other
indication of error) if the file does not exist and the filename has
the .lrf extension.
If the filename has another extension the code results in a dialog
'Unsupported FRF format'.
This to me is even more bothersome, I cannot trap this in code at all,
nor can I suppress the dialog.

Similar to other components that have a LoadFromFile (TMemo, TSynEdit,
TStringGrid to name a few), I would expect the LoadFromFile to raise
an exception in both cases.

Before I file this in the bigtracjker, I ask here.
Maybe this is by design (compatibility with Delphi perhaps)?

Bart

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] LazReport: TfrReport.LoadFromFile question

2014-08-24 Thread Bart
Hi,

TfrReport.LoadFromFile does not raise an exception (or return ay other
indication of error) if the file does not exist and the filename has
the .lrf extension.
If the filename has another extension the code results in a dialog
'Unsupported FRF format'.
This to me is even more bothersome, I cannot trap this in code at all,
nor can I suppress the dialog.

Similar to other components that have a LoadFromFile (TMemo, TSynEdit,
TStringGrid to name a few), I would expect the LoadFromFile to raise
an exception in both cases.

Before I file this in the bigtracjker, I ask here.
Maybe this is by design (compatibility with Delphi perhaps)?

Bart

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - access violation

2014-07-19 Thread Alejandro Gonzalo
UPDATE  This only seems to happen when some records have a large entry in the 
memo field.  The problem seems to be with the routine that calculates the field 
size but I don't know how to fix it.

(This refers to LazReport crashing when a memo field is included in a report)


A. G.



On Wednesday, April 2, 2014 1:48 PM, Alejandro Gonzalo 
parkingspac...@yahoo.com wrote:
 


I am using Laz 1.2 for Win32, with Advantage 
(http://devzone.advantagedatabase.com) for the database, Foxpro CDX format.
Everything seems to go ok designing a report with LazReport until I include a 
memo field, then it crashes.
Is there something special I have to do in LazReport to use a Foxpro style memo 
field?

Thanks

A. G.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport - access violation

2014-07-19 Thread Péter Gábor
The following bug reports are similar:

Report Designer: Invalid typecast
http://bugs.freepascal.org/view.php?id=26504

Report Designer: Undo raises List index (-1) out of bounds
http://bugs.freepascal.org/view.php?id=26506


2014-07-19 20:01 keltezéssel, Alejandro Gonzalo írta:
 UPDATE  This only seems to happen when some records have a large entry
 in the memo field.  The problem seems to be with the routine that
 calculates the field size but I don't know how to fix it.
 
 (This refers to LazReport crashing when a memo field is included in a
 report)

 I am using Laz 1.2 for Win32, with Advantage
 (http://devzone.advantagedatabase.com) for the database, Foxpro CDX format.
 Everything seems to go ok designing a report with LazReport until I
 include a memo field, then it crashes.
 Is there something special I have to do in LazReport to use a Foxpro
 style memo field?
 
 Thanks
 
 A. G.

-- 
Péter Gábor
p...@freemail.hu

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazreport with PostgreSQL

2014-07-13 Thread Allan E. Registos
On Saturday, 12 July, 2014 08:32 AM, Eduardo Lopez wrote:
 Hi Allan.

 You must install: Visual C++ 2008 Redistributables

 Eduardo.
Thanks.  I've reinstalled the redistributable. Still it doesn't work. 
The postgresql installer will also install the Visual C++
redistributable, really hard if the error does not point you of what was
missing. There might be some needed components for lazreport to detect
the postgresql libs properly, since Lazarus, sqldb  zeos are working
fine with postgresql.

 El 11/07/2014 05:19 a.m., Allan E. Registos escribió:
 Hi,

 Does anybody have a working lazreport + postgreSQL ?
 I am having trouble both 32-bit(winxp) with postgresl lib client
 present on the same program directory and in 64-bit win7.
 It cannot find libpq.dll.

 Thanks  regards,
 Allan



 -- 
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


 ---
 Este mensaje no contiene virus ni malware porque la protección de
 avast! Antivirus está activa.
 http://www.avast.com


 -- 
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazreport with PostgreSQL

2014-07-11 Thread Allan E. Registos
Hi, 

Does anybody have a working lazreport + postgreSQL ? 
I am having trouble both 32-bit(winxp) with postgresl lib client present on the 
same program directory and in 64-bit win7. 
It cannot find libpq.dll. 

Thanks  regards, 
Allan 

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazreport with PostgreSQL

2014-07-11 Thread Eduardo Lopez

Hi Allan.

You must install: Visual C++ 2008 Redistributables

Eduardo.

El 11/07/2014 05:19 a.m., Allan E. Registos escribió:

Hi,

Does anybody have a working lazreport + postgreSQL ?
I am having trouble both 32-bit(winxp) with postgresl lib client 
present on the same program directory and in 64-bit win7.

It cannot find libpq.dll.

Thanks  regards,
Allan



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



---
Este mensaje no contiene virus ni malware porque la protección de avast! 
Antivirus está activa.
http://www.avast.com


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazreport of master-detail

2014-06-26 Thread Koenraad Lelong

op 24-06-14 12:20, Reinier Olislagers schreef:

On 24/06/2014 10:29, Koenraad Lelong wrote:

backtrace. Can I have a backtrace in Windows ?


Yes. Use e.g. -gw2 -gl -O-1 (Lazarus: dwarf 2 format, line number, no
optimization, add -O-1 in extra options or whatever it's called) when
compiling.
Run gdb as usual and you should get the backtrace or run it in the
debugger under Lazarus to do things the GUI way ;)


Hi,

Since I did not find a way to backtrace in Lazarus, I did it via 
gdb-commandline. This is what I get (Windows XP) :


Program received signal SIGSEGV, Segmentation fault.
0x004036bb in SYSTEM_FORWARDS_SSE_3 ()
(gdb) bt
#0  0x004036bb in SYSTEM_FORWARDS_SSE_3 ()
#1  0x005dc7a4 in 
BUFDATASET_TCUSTOMBUFDATASET_$__CURRENTRECORDTOBUFFER$PCHAR

()
#2  0x0009b908 in ?? ()
#3  0x00594cee in DB_TDATASET_$__GETPRIORRECORD$$BOOLEAN ()
#4  0x00596fa7 in DB_TDATASET_$__RESYNC$TRESYNCMODE ()
#5  0x0059692e in DB_TDATASET_$__GOTOBOOKMARK$POINTER ()
#6  0x0001 in ?? ()
#7  0x0007da50 in ?? ()
#8  0x005c677a in RESTOREBOOKMARKS (parentfp=0x260f1e8) at lr_class.pas:7171
#9  0x005c5ecb in TFRPAGE__FORMPAGE (this=error reading variable)
at lr_class.pas:7438
#10 0x005cef0e in TFRREPORT__DOBUILDREPORT (this=error reading variable)
at lr_class.pas:9873
#11 0x005cdf8a in TFRREPORT__BUILDBEFOREMODAL (SENDER=0x9bb48,
this=error reading variable) at lr_class.pas:9517
#12 0x00612e5f in TFRPROGRESSFORM__DOBEFOREMODAL (DATA=0,
this=error reading variable) at lr_progr.pas:88
#13 0x0042309d in TAPPLICATION__PROCESSASYNCCALLQUEUE (
this=error reading variable) at ./include/application.inc:1079
#14 0x0042192f in TAPPLICATION__IDLE (WAIT=true,
this=error reading variable) at ./include/application.inc:389
#15 0x0041d46c in TCUSTOMFORM__SHOWMODAL (this=error reading variable)
at ./include/customform.inc:2907
#16 0x00612db1 in TFRPROGRESSFORM__SHOW_MODAL (DOC=0x2f88228,
this=error reading variable) at lr_progr.pas:70
#17 0x005ce45e in TFRREPORT__DOPREPAREREPORT (this=error reading variable)
at lr_class.pas:9671
#18 0x005ce0eb in TFRREPORT__PREPAREREPORT (this=error reading variable)
at lr_class.pas:9567
#19 0x005cf151 in TFRREPORT__SHOWREPORT (this=error reading variable)
at lr_class.pas:9927
#20 0x00426f09 in TFORM1__BTNPREVIEWCLICK (SENDER=0x2f3fc10,
this=error reading variable) at modmain.pas:65
#21 0x00513068 in TCONTROL__CLICK (this=error reading variable)
at ./include/control.inc:2711
#22 0x0052fe6f in TBUTTONCONTROL__CLICK (this=error reading variable)
at ./include/buttoncontrol.inc:54
#23 0x005305c6 in TCUSTOMBUTTON__CLICK (this=error reading variable)
at ./include/buttons.inc:169
#24 0x00530c21 in TBUTTON__CLICK (this=error reading variable)
at ./include/buttons.inc:349
#25 0x0052fd7a in TBUTTONCONTROL__WMDEFAULTCLICKED (MESSAGE=...,
this=error reading variable) at ./include/buttoncontrol.inc:20
#26 0x0040b846 in SYSTEM_TOBJECT_$__DISPATCH$formal ()
#27 0x0052fd60 in TBUTTONCONTROL__ISCHECKEDSTORED (
this=error reading variable) at ./include/buttoncontrol.inc:16
#28 0x00506b1f in TWINCONTROL__WNDPROC (MESSAGE=...,
this=error reading variable) at ./include/wincontrol.inc:5327
#29 0x0055e8db in DELIVERMESSAGE (TARGET=0x2f3fc10, AMESSAGE=void)
at lclmessageglue.pas:112
#30 0x004de361 in WINDOWPROC (WINDOW=66834, MSG=273, WPARAM=64528,
LPARAM=66846) at win32callback.inc:2478
#31 0x00587338 in CUSTOMFORMWNDPROC (WINDOW=66834, MSG=273, WPARAM=64528,
LPARAM=66846) at win32wsforms.pp:395
#32 0x7e398734 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
#33 0x00010512 in ?? ()
#34 0x7e398816 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
#35 0x00587230 in ADJUSTFORMBOUNDS (AFORM=0x0, SIZERECT=...)
at win32wsforms.pp:316
#36 0x7e3a927b in USER32!GetParent () from C:\WINDOWS\system32\user32.dll
#37 0x in ?? ()
(gdb)

Since it's not my application that's behaving bad (AFAICT) I'm going to 
try to reproduce this with a public database. Then I'll write a 
bug-report.


Koenraad.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazreport of master-detail

2014-06-26 Thread Reinier Olislagers
On 26/06/2014 09:27, Koenraad Lelong wrote:
 Since it's not my application that's behaving bad (AFAICT) I'm going to
 try to reproduce this with a public database. Then I'll write a
 bug-report.

Ok, thanks.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazreport of master-detail

2014-06-24 Thread Koenraad Lelong

Hi,

I got a strange problem when I show a Lazreport of a master-detail 
relationship.
If the master-table contains an odd number of items, the report is OK. 
If it contains an even number of items it crashes with this error :


Program received signal SIGSEGV, Segmentation fault.
0x004df6d4 in SYSTEM_MOVE$formal$formal$INT64 ()
(gdb) bt
#0  0x004df6d4 in SYSTEM_MOVE$formal$formal$INT64 ()
#1  0x008c2893 in 
BUFDATASET_TCUSTOMBUFDATASET_$__CURRENTRECORDTOBUFFER$PCHAR ()

#2  0x77fb6701 in ?? ()
#3  0x in ?? ()

That's with Lazarus 1.2.2, on Linux 64bit. But I think I do have the 
same problem on 32bit Windows. I switched to linux to be able to 
backtrace. Can I have a backtrace in Windows ?


Koenraad.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazreport of master-detail

2014-06-24 Thread Reinier Olislagers
On 24/06/2014 10:29, Koenraad Lelong wrote:
 backtrace. Can I have a backtrace in Windows ?

Yes. Use e.g. -gw2 -gl -O-1 (Lazarus: dwarf 2 format, line number, no
optimization, add -O-1 in extra options or whatever it's called) when
compiling.
Run gdb as usual and you should get the backtrace or run it in the
debugger under Lazarus to do things the GUI way ;)

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazreport master-detail on one line

2014-05-27 Thread Koenraad Lelong

op 26-05-14 13:47, Reinier Olislagers schreef:

(Note: haven't ever set up master/detail reporting in Lazreport, so just
some ideas below)

At least in other reporting solutions, master details means having some
master band, then a detail band below it.
This gives the following setup:
Master1 record
...detail1:record1
...detail1:record2
...
...detail1.recordn
Master2 record
...detail2:record1
...
...detail2:recordn1

In other words, it supports single row reports only.
No idea if this applies to lazreport.


This works fine in Lazreport, but it's not what I want. I want all data, 
including details, of the master-record on one line.




In other reporting solutions, if you want to have master+detail info
next to each other, you can use a query in the database that provides
the info in the desired layout.

This is often known as s acrosstab query, searching gives e.g.
Postgresql
http://stackoverflow.com/questions/3002499/postgresql-crosstab-query
Or
http://www.paragoncorporation.com/ArticleDetail.aspx?ArticleID=25

Obviously no idea if this applies to lazreport as well.


This should work in Lazreport, but that's just a case of a masterband.

The point is then : what's the cross-data band used for ? How does it work ?

Anyway, thanks for your input.
B.T.W. I'm using Firebird as a database.

Koenraad.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazreport master-detail on one line

2014-05-26 Thread Reinier Olislagers
(Note: haven't ever set up master/detail reporting in Lazreport, so just
some ideas below)

At least in other reporting solutions, master details means having some
master band, then a detail band below it.
This gives the following setup:
Master1 record
...detail1:record1
...detail1:record2
...
...detail1.recordn
Master2 record
...detail2:record1
...
...detail2:recordn1

In other words, it supports single row reports only.
No idea if this applies to lazreport.

In other reporting solutions, if you want to have master+detail info
next to each other, you can use a query in the database that provides
the info in the desired layout.

This is often known as s acrosstab query, searching gives e.g.
Postgresql
http://stackoverflow.com/questions/3002499/postgresql-crosstab-query
Or
http://www.paragoncorporation.com/ArticleDetail.aspx?ArticleID=25

Obviously no idea if this applies to lazreport as well.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazreport master-detail on one line

2014-05-26 Thread Giuliano Colla

Il 26/05/2014 13:26, Koenraad Lelong ha scritto:

Hi,

I want to make a report of database data. The data has a master-detail 
relationship. For every master-record there are a fixed number of 
detail-records.

A detail record = ItemCode, ItemValue

So I make a lazreport. I put a masterheader band on the report and I 
put some text on it. Then I put a masterdata band on the report and I 
put some rectangle objects on that band and connect those the 
master-table. When I show the report, everything is like I want it.
Next step is to add detail-fields. I though that using a cross-data 
band was the needed tool. On the crossing of the masterheader-band I 
put a rectangle-object and couple this to the detail-field ItemCode.
On the crossing of the masterdata-band I put a rectangle-object 
coupled to the detail-field ItemValue.


When I now show the report, my master-information is OK, for all 
master-records, but the detail-information is that of the first 
detail-record, for all master-records. Also the information of the 
detail in the master-header is OK.
I have two grids showing the master-detail information so I know my 
queries are OK.


What am I doing wrong ?
Enclosed a screenshot. Green ovals contain correct data, the red oval 
contains bad data.


It would appear that your detail-field always points to the first item 
of your query. Which is not unexpected, because, most likely your detail 
fields come from a different query than that of the master fields. 
Master query automatically increment at each line, other data do not.
If such is the case, you should take care of filling up your detail 
fields programmatically, using variables instead of query fields in your 
form, and taking advantage of a frWhateverGetValue, returning a ParValue 
taken from your query. Sort of:


procedure TMyForm.frWhateverGetValue(const ParName: String;
  var ParValue: Variant);
.

if ParName = 'SA1' then ParValue := SQLQueryXX.FieldByName('SA1').AsInteger
else if ParName = ...


and, for the last parameter of the line, incrementing to next line of 
your query. Sort of:


else if ParName = 'LASTParam' then begin
  ParValue := SQLQueryXX.FieldByName('LASTParamName').AsWhatever;
  SQLQueryXX.Next;
  end;

Of course this works fine if there's a one-to-one correspondence between 
master and detail query lines. Otherwise your code must be a little more 
elaborated.


Hope that it helps,

Giuliano


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] LazReport - access violation

2014-04-02 Thread Alejandro Gonzalo
I am using Laz 1.2 for Win32, with Advantage 
(http://devzone.advantagedatabase.com) for the database, Foxpro CDX format.
Everything seems to go ok designing a report with LazReport until I include a 
memo field, then it crashes.
Is there something special I have to do in LazReport to use a Foxpro style memo 
field?

Thanks

A. G.--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Database

2014-03-11 Thread Jesus Reyes
 Jesus Reyes jesus...@yahoo.com.mx wrote:

 
  This is basically to Mattias, is it possible to register at design time 
 data modules so they appear in FindGlobalComponentList? any other solution?
 
 FindGlobalComponentList is for the currently running application - the
 IDE itself.
 
 Properties in the OI use the property editors. A TComponent property
 uses the TComponentPropertyEditor, which allows to select type
 compatible components from any open designer form including datamodules.
 
 What property does not work?
 Is this a problem in the OI or in LazReport?
 
 
 Mattias


Was a problem in LazReport, is now fixed, thanks.

Jesus Reyes A.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Database

2014-03-10 Thread Koenraad Lelong

op 09-01-12 09:36, Koenraad Lelong schreef:

On 05-01-12 18:07, Mattias Gaertner wrote:


Can you create a small example and a bug report?

Mattias



http://bugs.freepascal.org/view.php?id=21050

Koenraad


Hi,

With a new project, last week I tried to do this again. First with 
Lazarus 1.08, today with Lazarus 1.2 (downloaded and installed this 
morning). Still the same problem.
I looked in the bugtracker. There is a request for a new sample-project. 
Unfortunately I lost my password and the email-address is not valid anymore.

The bugtracker states :

You need to first link TfrDBDataSet to a TDbf (which could be in a TDatamodule) 
and then link the TfrDBDataSet to the TfrReport via the Dataset property.
When you use the query on the same form as the report, this is *not* 
needed. And adding a TfrDBDataSet and connecting it to the query on the 
datamodule does not work.


FWIW, I'm running WinXP.
I do have a new project with the mentioned TfrDBDataSet. Can I upload it 
here ?


Koenraad.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Database

2014-03-10 Thread Jesus Reyes
 With a new project, last week I tried to do this again. First with 

 Lazarus 1.08, today with Lazarus 1.2 (downloaded and installed this 
 morning). Still the same problem.
 I looked in the bugtracker. There is a request for a new sample-project. 
 Unfortunately I lost my password and the email-address is not valid anymore.
 The bugtracker states :
  You need to first link TfrDBDataSet to a TDbf (which could be in a 
 TDatamodule) and then link the TfrDBDataSet to the TfrReport via the Dataset 
 property.

 When you use the query on the same form as the report, this is *not* 

 needed. And adding a TfrDBDataSet and connecting it to the query on the 
 datamodule does not work.
 


In your report you wrote that setting up the connection in code works, that 
means it's a problem at runtime, the response in note 72299 address the problem 
in that case, and as it written it works if you link TfrDbDataset etc. 

But now things are clearer as you say the problem is at design time, and yes, 
the issue can be reproduced. The problem here is LazReport (in form1) can't get 
an instance to Datamodule1.Dbf1 at Lazarus design time. At design time, the 
object inspector knows how to get an instance to a component residing in a 
external form/datamodule but LazReport designer at Lazarus design time doesn't 
know.

This is basically to Mattias, is it possible to register at design time data 
modules so they appear in FindGlobalComponentList? any other solution?

Jesus Reyes A.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Database

2014-03-10 Thread Mattias Gaertner
On Mon, 10 Mar 2014 13:37:59 -0700 (PDT)
Jesus Reyes jesus...@yahoo.com.mx wrote:

[...]
 But now things are clearer as you say the problem is at design time, and yes, 
 the issue can be reproduced. The problem here is LazReport (in form1) can't 
 get an instance to Datamodule1.Dbf1 at Lazarus design time. At design time, 
 the object inspector knows how to get an instance to a component residing in 
 a external form/datamodule but LazReport designer at Lazarus design time 
 doesn't know.
 
 This is basically to Mattias, is it possible to register at design time data 
 modules so they appear in FindGlobalComponentList? any other solution?

FindGlobalComponentList is for the currently running application - the
IDE itself.

Properties in the OI use the property editors. A TComponent property
uses the TComponentPropertyEditor, which allows to select type
compatible components from any open designer form including datamodules.

What property does not work?
Is this a problem in the OI or in LazReport?

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport feature request

2013-11-22 Thread Giuliano Colla

Jesus Reyes ha scritto:

El Jueves, 21 de noviembre, 2013 6:10:55, Giuliano Colla 
giuliano.co...@fastwebnet.it escribió:

Dealing with inexperienced users, I would need to set the DefaultDir and 
Filename of the file dialog to something meaningful by the application 
point of view.


Is that already possible, setting some TfrReport properties I've been 
unable to find, or it would be necessary to patch LazReport by providing 
additional public properties, or providing overloaded versions of 
ShowReport and ShowPreparedReport, with additional parameters?


Thanks for any hint.

Giuliano




You can use the Report.ExportFileName field for selecting the default file name 
the dialog will use on exporting. In addition, passing a filename with 
extension will make an initial selection of export filter.

Setting the initial directory was not implemented, is now in r43471, the file 
path extracted from the FileName is used.



Thank you,

Giuliano

--
Giuliano Colla

Before activating the tongue, make sure that the brain is connected 
(anonymous)


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] LazReport feature request

2013-11-21 Thread Giuliano Colla
When you invoke the ShowReport or ShowPreparedReport methods of a 
TfrReport, you get a preview of the report, with a Save Report button.


Save Report will open a file dialog, which defaults to the user home 
directory, and an empty Filename.


Dealing with inexperienced users, I would need to set the DefaultDir and 
Filename of the file dialog to something meaningful by the application 
point of view.


Is that already possible, setting some TfrReport properties I've been 
unable to find, or it would be necessary to patch LazReport by providing 
additional public properties, or providing overloaded versions of 
ShowReport and ShowPreparedReport, with additional parameters?


Thanks for any hint.

Giuliano




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport

2013-09-30 Thread 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. Nothingcrashes 
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

On 2013-09-29 10:52 PM, Reinier Olislagers wrote:

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
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport

2013-09-30 Thread Michael Schneider
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. Nothingcrashes
 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=trct=jq=esrc=ssource=webcd=5ved=0CFwQFjAEurl=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.pdfei=065JUqy7GcPdtAbF3YDwBQusg=AFQjCNEY0TS_zDONFtNlr0-2jVGgL-OIWwsig2=6RZTwvdfMCSWSB1nAcXEEQbvm=bv.53217764,d.Yms

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport

2013-09-30 Thread Hew Lines

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

Hew

On 2013-09-30 10:07 AM, Michael Schneider wrote:

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. Nothingcrashes
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=trct=jq=esrc=ssource=webcd=5ved=0CFwQFjAEurl=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.pdfei=065JUqy7GcPdtAbF3YDwBQusg=AFQjCNEY0TS_zDONFtNlr0-2jVGgL-OIWwsig2=6RZTwvdfMCSWSB1nAcXEEQbvm=bv.53217764,d.Yms

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport

2013-09-30 Thread Hew Lines
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

On 2013-09-30 10:07 AM, Michael Schneider wrote:

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. Nothingcrashes
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=trct=jq=esrc=ssource=webcd=5ved=0CFwQFjAEurl=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.pdfei=065JUqy7GcPdtAbF3YDwBQusg=AFQjCNEY0TS_zDONFtNlr0-2jVGgL-OIWwsig2=6RZTwvdfMCSWSB1nAcXEEQbvm=bv.53217764,d.Yms

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] LazReport

2013-09-29 Thread 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


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport

2013-09-29 Thread Reinier Olislagers
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
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Band.name patch

2013-04-21 Thread Giuliano Colla

On February 25 I sent you a small patch to fix the band.name issue.
I've never got any feedback, and, as of today, I don't see the patch in 
trunk.

Did you decide to reject the patch, or you didn't get it?

Giuliano


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Band.name patch

2013-04-21 Thread Maxim Ganetsky

21.04.2013 19:37, Giuliano Colla пишет:

On February 25 I sent you a small patch to fix the band.name issue.
I've never got any feedback, and, as of today, I don't see the patch in
trunk.
Did you decide to reject the patch, or you didn't get it?


You really should create bug report with this patch. Most likely it was 
simply forgotten.


--
Best regards,
 Maxim Ganetsky  mailto:gan...@narod.ru

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Band.name patch

2013-04-21 Thread Giuliano Colla

Il 21/04/2013 17:52, Maxim Ganetsky ha scritto:

21.04.2013 19:37, Giuliano Colla пишет:

On February 25 I sent you a small patch to fix the band.name issue.
I've never got any feedback, and, as of today, I don't see the patch in
trunk.
Did you decide to reject the patch, or you didn't get it?


You really should create bug report with this patch. Most likely it 
was simply forgotten.



That's why I asked. Thank you.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Band.name patch

2013-04-21 Thread Giuliano Colla

Il 21/04/2013 17:52, Maxim Ganetsky ha scritto:

21.04.2013 19:37, Giuliano Colla пишет:

On February 25 I sent you a small patch to fix the band.name issue.
I've never got any feedback, and, as of today, I don't see the patch in
trunk.
Did you decide to reject the patch, or you didn't get it?


You really should create bug report with this patch. Most likely it 
was simply forgotten.



Bug report created:
http://bugs.freepascal.org/view.php?id=24305

Giuliano


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Band.name patch

2013-02-25 Thread Giuliano Colla

On 02/24/2013 09:19 PM, Jesus Reyes wrote:


--- El jue 21-feb-13, Giuliano Collagiuliano.co...@fastwebnet.it  escribió:


I've tested a different approach, i.e. not *setting* the
Band name, but just *getting* Band name from BandView, (a
Name property in TfrBand which just returns the name of the
corresponding Bandview, i.e. View.Name). It doesn't produce
side effects, because when the BandView name is set the
corresponding Band object doesn't yet exist.

There are two solutions:
1) I send you the new patch.
2) We leave things as they are, but the examples and the
documentation are modified to make it clear that
TfrBand.Name is always empty, and that one must use
TfrBand.View.Name to obtain a meaningful information.

You're the boss, so it's up to you to decide.

Giuliano


Yes, please send the patch.

Jesus Reyes A.


Here is it.

Giuliano

--- lr_class.pas.orig	2012-11-23 00:47:56.0 +0100
+++ lr_class.pas	2013-02-25 20:28:26.0 +0100
@@ -556,6 +556,7 @@
 DisableInit: Boolean;
 CalculatedHeight: Integer;
 
+function getViewName: string;
 procedure InitDataSet(const Desc: String);
 procedure DoError;
 function CalcHeight: Integer;
@@ -593,6 +594,7 @@
 constructor Create(ATyp: TfrBandType; AParent: TfrPage); overload;
 destructor Destroy; override;
 function IsDataBand: boolean;
+property Name: string Read getViewName;
   end;
 
   TfrValue = class
@@ -4794,6 +4796,12 @@
 DataSet := CurReport.Dataset;
 end;
 
+function TfrBand.getViewName: string;
+begin
+  if Assigned(View) then Result := View.Name
+  else Result := '';
+end;
+
 procedure TfrBand.DoError;
 var
   i: Integer;
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Band.name patch

2013-02-24 Thread Jesus Reyes


--- El jue 21-feb-13, Giuliano Colla giuliano.co...@fastwebnet.it escribió:

 
 I've tested a different approach, i.e. not *setting* the
 Band name, but just *getting* Band name from BandView, (a
 Name property in TfrBand which just returns the name of the
 corresponding Bandview, i.e. View.Name). It doesn't produce
 side effects, because when the BandView name is set the
 corresponding Band object doesn't yet exist.
 
 There are two solutions:
 1) I send you the new patch.
 2) We leave things as they are, but the examples and the
 documentation are modified to make it clear that
 TfrBand.Name is always empty, and that one must use
 TfrBand.View.Name to obtain a meaningful information.
 
 You're the boss, so it's up to you to decide.
 
 Giuliano
 

Yes, please send the patch.

Jesus Reyes A.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Band.name patch

2013-02-21 Thread Giuliano Colla

On 02/18/2013 08:58 PM, Jesus Reyes wrote:

Hi Giuliano,

As you may know, the patch was merged to fixes but, a problem was detected, it 
introduced a regression, please see http://bugs.freepascal.org/view.php?id=23901

Jesus Reyes A.


I made further tests both under Linux and under Windows. The behavior 
turns out to be the same.


What happens is that my patch (i.e. setting Band name from the BandView) 
doesn't affect Preview at design time, doesn't affect any method for 
displaying a Report (PrepareReport, etc.) but it causes an error if you 
attempt to design a report in runtime (something I had not tested, 
because I didn't use it) .
In that condition (and only in that condition) whenever the name of an 
object is set, it verifies if the name is duplicated. As we have the 
same name for BandView and Band, when we set the name of the Band it 
triggers the error.
It's unclear to me while this test is made only in this condition, 
because there should be no difference if you design a report at design 
time, or at run time, but that's how it's made.


I've tested a different approach, i.e. not *setting* the Band name, but 
just *getting* Band name from BandView, (a Name property in TfrBand 
which just returns the name of the corresponding Bandview, i.e. 
View.Name). It doesn't produce side effects, because when the BandView 
name is set the corresponding Band object doesn't yet exist.


There are two solutions:
1) I send you the new patch.
2) We leave things as they are, but the examples and the documentation 
are modified to make it clear that TfrBand.Name is always empty, and 
that one must use TfrBand.View.Name to obtain a meaningful information.


You're the boss, so it's up to you to decide.

Giuliano



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] LazReport Band.name patch

2013-02-02 Thread Giuliano Colla
While implementing an application which uses LazReport, trying to take 
advantage of OnBeginBand I discovered that Band.Name is never set and is 
left as an empty string.
This can be annoying if you have more than one Band of the same type, so 
that Band.Typ is not enough to tell the right band.
Here attached two patches which for me fixed the issue, one, an svn 
diff, for the svn version 2.4, and the other, a plain diff, for the 
current Lazarus release (1.0.4) version, i.e. 2.3.

Maybe it can be done much better, but just in case...

Giuliano

Index: lr_class.pas
===
--- lr_class.pas	(revisione 39655)
+++ lr_class.pas	(copia locale)
@@ -6237,6 +6237,7 @@
   x := bt.x; dx := bt.dx;
   InitDataSet(TfrBandView(bt).DataSet);
   View := bt;
+  Name:= bt.Name; // Get Band Name from BandView Name (G. Colla)
   Flags := bt.Flags;
   Visible := bt.Visible;
   bt.Parent := Bands[TfrBandView(bt).BandType];
@@ -6257,6 +6258,7 @@
t.x := t.x - Bnd.x;
t.Parent := Bnd;
Bnd.Objects.Add(t);
+   Bnd.Name:= t.Name;  // Get Band Name from BandView Name (G. Colla)
  end;
   end;
 end;
@@ -6285,6 +6287,7 @@
 Bnd.y := bt.y;
 Bnd.dy := bt.dy;
 Bnd.View := bt;
+Bnd.Name:= bt.Name;  // Get Band Name from BandView Name (G. Colla)
 Bnd.Flags := bt.Flags;
 Bnd.Visible := bt.Visible;
 bt.Parent := Bnd;
--- lr_class.pas.bak	2012-11-23 00:47:56.0 +0100
+++ lr_class.pas	2013-02-02 14:21:49.0 +0100
@@ -5996,6 +5996,7 @@
   x := bt.x; dx := bt.dx;
   InitDataSet(TfrBandView(bt).DataSet);
   View := bt;
+  Name:= bt.Name; // Get Band Name from BandView Name (G. Colla)
   Flags := bt.Flags;
   Visible := bt.Visible;
   bt.Parent := Bands[TfrBandView(bt).BandType];
@@ -6016,6 +6017,7 @@
t.x := t.x - Bnd.x;
t.Parent := Bnd;
Bnd.Objects.Add(t);
+   Bnd.Name:= t.Name;  // Get Band Name from BandView Name (G. Colla)
  end;
   end;
 end;
@@ -6044,7 +6046,8 @@
 Bnd.y := bt.y;
 Bnd.dy := bt.dy;
 Bnd.View := bt;
-Bnd.Flags := bt.Flags;
+	Bnd.Name:= bt.Name;  // Get Band Name from BandView Name (G. Colla)
+	Bnd.Flags := bt.Flags;
 Bnd.Visible := bt.Visible;
 bt.Parent := Bnd;
 with bt as TfrBandView, Bnd do
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Band.name patch

2013-02-02 Thread Jesus Reyes


--- El sáb 2-feb-13, Giuliano Colla giuliano.co...@fastwebnet.it escribió:

 De: Giuliano Colla giuliano.co...@fastwebnet.it
 Asunto: LazReport Band.name patch
 A: lazarus@lists.lazarus.freepascal.org
 Cc: Jesus Reyes jesus...@yahoo.com.mx
 Fecha: sábado, 2 de febrero de 2013, 8:32
 While implementing an application
 which uses LazReport, trying to take advantage of
 OnBeginBand I discovered that Band.Name is never set and is
 left as an empty string.
 This can be annoying if you have more than one Band of the
 same type, so that Band.Typ is not enough to tell the right
 band.
 Here attached two patches which for me fixed the issue, one,
 an svn diff, for the svn version 2.4, and the other, a plain
 diff, for the current Lazarus release (1.0.4) version, i.e.
 2.3.
 Maybe it can be done much better, but just in case...
 
 Giuliano
 
 

Thanks, applied in trunk (r40127). It's too late for including in next release 
(1.0.6) will have to wait 1.0.8

Jesus Reyes A.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Images and Unicode

2013-01-17 Thread patspiper

On 16/01/13 20:12, Jesus Reyes wrote:


--- El lun 14-ene-13, Giuliano Colla giuliano.co...@fastwebnet.it escribió:


2) Report printout shows the Image, but skips Chinese
characters.


That's correct, TPostscriptCanvas do not support all unicode, Latin and 
Cyrillic should be fine though.
What about Arabic? Some fonts do not produce any Arabic output at all, 
and others produce detached characters (isolated form) only.


Pls refer to bug http://bugs.freepascal.org/view.php?id=19435 and
http://forum.lazarus.freepascal.org/index.php/topic,13206.0.html
for more info.

Stephano

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Images and Unicode

2013-01-16 Thread Jesus Reyes


--- El lun 14-ene-13, Giuliano Colla giuliano.co...@fastwebnet.it escribió:

 2) Report printout shows the Image, but skips Chinese
 characters.


That's correct, TPostscriptCanvas do not support all unicode, Latin and 
Cyrillic should be fine though.
 
 3) Pdf export shows the image, but replaces Chinese
 characters with question marks. I understand that PowerPdf
 doesn't support Unicode, but changing the font encoding from
 Unicode to Big5 doesn't help.

That's correct, PowerPdf is limited to Latin scripts.

 
 4) Html export shows the Chinese characters, but doesn't
 show the image.
 

Yes, it doesn't export images. I think an option can be added to html exporter 
so it can export images too.

 5) Text export shows the Chinese characters, but obviously
 doesn't show the image.

That's correct.

 
 Is there a way to get a printout which properly reproduces
 the Report preview?
 
 Can someone point me in the right direction?
 
 Giuliano


There are at least two solutions, according to bug report 
http://bugs.freepascal.org/view.php?id=15161 using Qt interface should work. 
The other solution is exporting pages as images with Image Exporter, that I can 
confirm it does ok, see LazReport/source/addons/imgexport/lr_extexp.lpk

There is another possibility, for the future, time ago petr kristan made a 
CairoCanvas object that can be used instead of TPostscriptPrinterCanvas. After 
I fixed some things I made it work again but showing Chinese text and images 
was unsuccessful. It currently uses plain cairo to show text, I will try to 
improve it.

Jesus Reyes A.



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Images and Unicode

2013-01-16 Thread Jesus Reyes


--- El mié 16-ene-13, Jesus Reyes jesus...@yahoo.com.mx escribió:

 There are at least two solutions, according to bug report 
 http://bugs.freepascal.org/view.php?id=15161 using Qt
 interface should work. The other solution is exporting pages
 as images with Image Exporter, that I can confirm it does
 ok, see LazReport/source/addons/imgexport/lr_extexp.lpk
 

Forgot to say, the Image exporter has another html exporter (appear as HTML 
(div-based) on export list) that do include images and Chinese text

Jesus Reyes A.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Images and Unicode

2013-01-16 Thread Giuliano Colla

On 01/16/2013 07:17 PM, Jesus Reyes wrote:


--- El mié 16-ene-13, Jesus Reyesjesus...@yahoo.com.mx  escribió:


There are at least two solutions, according to bug report 
http://bugs.freepascal.org/view.php?id=15161 using Qt
interface should work. The other solution is exporting pages
as images with Image Exporter, that I can confirm it does
ok, see LazReport/source/addons/imgexport/lr_extexp.lpk


Forgot to say, the Image exporter has another html exporter (appear as HTML 
(div-based) on export list) that do include images and Chinese text

Thank you very much. I'll try your suggestions.

Giuliano


Jesus Reyes A.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] LazReport Images and Unicode

2013-01-14 Thread Giuliano Colla
I'm trying to use LazReport to generate reports which should show an 
image (the company logo) and some Chinese text.

Currently (Lazarus 1.0.4 on Linux platform) I have the following scenario:

1) Report preview is correct (Image and Chinese text properly shown)

2) Report printout shows the Image, but skips Chinese characters.

3) Pdf export shows the image, but replaces Chinese characters with 
question marks. I understand that PowerPdf doesn't support Unicode, but 
changing the font encoding from Unicode to Big5 doesn't help.


4) Html export shows the Chinese characters, but doesn't show the image.

5) Text export shows the Chinese characters, but obviously doesn't show 
the image.


Is there a way to get a printout which properly reproduces the Report 
preview?


Can someone point me in the right direction?

Giuliano


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport: printing on the next page, using stretch and breaked band

2013-01-08 Thread Jesus Reyes


--- El lun 7-ene-13, Marcos Douglas m...@delfire.net escribió:

 De: Marcos Douglas m...@delfire.net
 Asunto: Re: [Lazarus] LazReport: printing on the next page, using stretch and 
 breaked band
 A: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
 Fecha: lunes, 7 de enero de 2013, 16:04
 On Mon, Jan 7, 2013 at 6:25 PM, Jesus
 Reyes jesus...@yahoo.com.mx
 wrote:
 
 
  --- El lun 7-ene-13, Marcos Douglas m...@delfire.net
 escribió:
 
  Jesus,
 
  Do you need more information or tests to finish
 this bug?
 
  Best regards,
  Marcos Douglas
 
 
  No, I'm in the process of testing the fix, will commit
 it soon.
 
  Jesus Reyes A.
 
 Ok, thank you.
 
 Marcos Douglas
 

Fix commited, please test.

Jesus Reyes A.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport: printing on the next page, using stretch and breaked band

2013-01-08 Thread Marcos Douglas
On Tue, Jan 8, 2013 at 2:50 PM, Jesus Reyes jesus...@yahoo.com.mx wrote:


 --- El lun 7-ene-13, Marcos Douglas m...@delfire.net escribió:

 De: Marcos Douglas m...@delfire.net
 Asunto: Re: [Lazarus] LazReport: printing on the next page, using stretch 
 and breaked band
 A: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
 Fecha: lunes, 7 de enero de 2013, 16:04
 On Mon, Jan 7, 2013 at 6:25 PM, Jesus
 Reyes jesus...@yahoo.com.mx
 wrote:
 
 
  --- El lun 7-ene-13, Marcos Douglas m...@delfire.net
 escribió:
 
  Jesus,
 
  Do you need more information or tests to finish
 this bug?
 
  Best regards,
  Marcos Douglas
 
 
  No, I'm in the process of testing the fix, will commit
 it soon.
 
  Jesus Reyes A.

 Ok, thank you.

 Marcos Douglas


 Fix commited, please test.

 Jesus Reyes A.

Works fine. Thank you!

Marcos Douglas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport: printing on the next page, using stretch and breaked band

2013-01-07 Thread Marcos Douglas
On Sat, Dec 15, 2012 at 4:28 PM, Marcos Douglas m...@delfire.net wrote:
 On Sat, Dec 15, 2012 at 4:02 PM, Jesus Reyes jesus...@yahoo.com.mx wrote:


 --- El sáb 15-dic-12, Marcos Douglas m...@delfire.net escribió:

 De: Marcos Douglas m...@delfire.net
 Asunto: Re: [Lazarus] LazReport: printing on the next page, using stretch 
 and breaked band
 A: Waldo Kitty wkitt...@windstream.net, Lazarus mailing list 
 lazarus@lists.lazarus.freepascal.org
 Fecha: sábado, 15 de diciembre de 2012, 9:25
 On Sat, Dec 15, 2012 at 1:09 AM,
 waldo kitty wkitt...@windstream.net
 wrote:
  On 12/14/2012 13:17, Marcos Douglas wrote:
 
  On Fri, Dec 14, 2012 at 8:05 AM, Marcos
 Douglasm...@delfire.net
 wrote:
 
  Hi,
 
  I have a table with a memo field.
  I put a retangle with stretch property True;
 the band is stretch and
  breaked property too.
 
  The question:
  If the info is bigger than a page, how the
 report can continue
  printing in the next page?
 
 
  Not possible or nobody understood?
 
 
  or it is the weekend and those who might are elsewhere?
 ;)
 
  plus, it was only 12hours or so between the first post
 and the second ;)
 
  i would help if i could but i'm still pretty much an
 observer in many
  instances ;)

 You probably right... well, I need this, urgently... but
 you're right. Thanks.

 Marcos Douglas


 There is no sample attached to bug report, please give something that you 
 can reproduce yourself.

 Jesus Reyes A.

 Done.

 Marcos Douglas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport: printing on the next page, using stretch and breaked band

2013-01-07 Thread Marcos Douglas
On Sat, Dec 15, 2012 at 4:28 PM, Marcos Douglas m...@delfire.net wrote:
 On Sat, Dec 15, 2012 at 4:02 PM, Jesus Reyes jesus...@yahoo.com.mx wrote:


 --- El sáb 15-dic-12, Marcos Douglas m...@delfire.net escribió:

 De: Marcos Douglas m...@delfire.net
 Asunto: Re: [Lazarus] LazReport: printing on the next page, using stretch 
 and breaked band
 A: Waldo Kitty wkitt...@windstream.net, Lazarus mailing list 
 lazarus@lists.lazarus.freepascal.org
 Fecha: sábado, 15 de diciembre de 2012, 9:25
 On Sat, Dec 15, 2012 at 1:09 AM,
 waldo kitty wkitt...@windstream.net
 wrote:
  On 12/14/2012 13:17, Marcos Douglas wrote:
 
  On Fri, Dec 14, 2012 at 8:05 AM, Marcos
 Douglasm...@delfire.net
 wrote:
 
  Hi,
 
  I have a table with a memo field.
  I put a retangle with stretch property True;
 the band is stretch and
  breaked property too.
 
  The question:
  If the info is bigger than a page, how the
 report can continue
  printing in the next page?
 
 
  Not possible or nobody understood?
 
 
  or it is the weekend and those who might are elsewhere?
 ;)
 
  plus, it was only 12hours or so between the first post
 and the second ;)
 
  i would help if i could but i'm still pretty much an
 observer in many
  instances ;)

 You probably right... well, I need this, urgently... but
 you're right. Thanks.

 Marcos Douglas


 There is no sample attached to bug report, please give something that you 
 can reproduce yourself.

 Jesus Reyes A.

 Done.

 Marcos Douglas

Jesus,

Do you need more information or tests to finish this bug?

Best regards,
Marcos Douglas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport: printing on the next page, using stretch and breaked band

2013-01-07 Thread Jesus Reyes


--- El lun 7-ene-13, Marcos Douglas m...@delfire.net escribió:
 
 Jesus,
 
 Do you need more information or tests to finish this bug?
 
 Best regards,
 Marcos Douglas
 

No, I'm in the process of testing the fix, will commit it soon.

Jesus Reyes A.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport: printing on the next page, using stretch and breaked band

2013-01-07 Thread Marcos Douglas
On Mon, Jan 7, 2013 at 6:25 PM, Jesus Reyes jesus...@yahoo.com.mx wrote:


 --- El lun 7-ene-13, Marcos Douglas m...@delfire.net escribió:

 Jesus,

 Do you need more information or tests to finish this bug?

 Best regards,
 Marcos Douglas


 No, I'm in the process of testing the fix, will commit it soon.

 Jesus Reyes A.

Ok, thank you.

Marcos Douglas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport: printing on the next page, using stretch and breaked band

2012-12-15 Thread Marcos Douglas
On Sat, Dec 15, 2012 at 1:09 AM, waldo kitty wkitt...@windstream.net wrote:
 On 12/14/2012 13:17, Marcos Douglas wrote:

 On Fri, Dec 14, 2012 at 8:05 AM, Marcos Douglasm...@delfire.net  wrote:

 Hi,

 I have a table with a memo field.
 I put a retangle with stretch property True; the band is stretch and
 breaked property too.

 The question:
 If the info is bigger than a page, how the report can continue
 printing in the next page?


 Not possible or nobody understood?


 or it is the weekend and those who might are elsewhere? ;)

 plus, it was only 12hours or so between the first post and the second ;)

 i would help if i could but i'm still pretty much an observer in many
 instances ;)

You probably right... well, I need this, urgently... but you're right. Thanks.

Marcos Douglas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport: printing on the next page, using stretch and breaked band

2012-12-15 Thread Jesus Reyes


--- El sáb 15-dic-12, Marcos Douglas m...@delfire.net escribió:

 De: Marcos Douglas m...@delfire.net
 Asunto: Re: [Lazarus] LazReport: printing on the next page, using stretch and 
 breaked band
 A: Waldo Kitty wkitt...@windstream.net, Lazarus mailing list 
 lazarus@lists.lazarus.freepascal.org
 Fecha: sábado, 15 de diciembre de 2012, 9:25
 On Sat, Dec 15, 2012 at 1:09 AM,
 waldo kitty wkitt...@windstream.net
 wrote:
  On 12/14/2012 13:17, Marcos Douglas wrote:
 
  On Fri, Dec 14, 2012 at 8:05 AM, Marcos
 Douglasm...@delfire.net 
 wrote:
 
  Hi,
 
  I have a table with a memo field.
  I put a retangle with stretch property True;
 the band is stretch and
  breaked property too.
 
  The question:
  If the info is bigger than a page, how the
 report can continue
  printing in the next page?
 
 
  Not possible or nobody understood?
 
 
  or it is the weekend and those who might are elsewhere?
 ;)
 
  plus, it was only 12hours or so between the first post
 and the second ;)
 
  i would help if i could but i'm still pretty much an
 observer in many
  instances ;)
 
 You probably right... well, I need this, urgently... but
 you're right. Thanks.
 
 Marcos Douglas
 

There is no sample attached to bug report, please give something that you can 
reproduce yourself.

Jesus Reyes A.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport: printing on the next page, using stretch and breaked band

2012-12-15 Thread Marcos Douglas
On Sat, Dec 15, 2012 at 4:02 PM, Jesus Reyes jesus...@yahoo.com.mx wrote:


 --- El sáb 15-dic-12, Marcos Douglas m...@delfire.net escribió:

 De: Marcos Douglas m...@delfire.net
 Asunto: Re: [Lazarus] LazReport: printing on the next page, using stretch 
 and breaked band
 A: Waldo Kitty wkitt...@windstream.net, Lazarus mailing list 
 lazarus@lists.lazarus.freepascal.org
 Fecha: sábado, 15 de diciembre de 2012, 9:25
 On Sat, Dec 15, 2012 at 1:09 AM,
 waldo kitty wkitt...@windstream.net
 wrote:
  On 12/14/2012 13:17, Marcos Douglas wrote:
 
  On Fri, Dec 14, 2012 at 8:05 AM, Marcos
 Douglasm...@delfire.net
 wrote:
 
  Hi,
 
  I have a table with a memo field.
  I put a retangle with stretch property True;
 the band is stretch and
  breaked property too.
 
  The question:
  If the info is bigger than a page, how the
 report can continue
  printing in the next page?
 
 
  Not possible or nobody understood?
 
 
  or it is the weekend and those who might are elsewhere?
 ;)
 
  plus, it was only 12hours or so between the first post
 and the second ;)
 
  i would help if i could but i'm still pretty much an
 observer in many
  instances ;)

 You probably right... well, I need this, urgently... but
 you're right. Thanks.

 Marcos Douglas


 There is no sample attached to bug report, please give something that you can 
 reproduce yourself.

 Jesus Reyes A.

Done.

Marcos Douglas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] LazReport: printing on the next page, using stretch and breaked band

2012-12-14 Thread Marcos Douglas
Hi,

I have a table with a memo field.
I put a retangle with stretch property True; the band is stretch and
breaked property too.

The question:
If the info is bigger than a page, how the report can continue
printing in the next page?

Marcos Douglas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport: printing on the next page, using stretch and breaked band

2012-12-14 Thread Marcos Douglas
On Fri, Dec 14, 2012 at 8:05 AM, Marcos Douglas m...@delfire.net wrote:
 Hi,

 I have a table with a memo field.
 I put a retangle with stretch property True; the band is stretch and
 breaked property too.

 The question:
 If the info is bigger than a page, how the report can continue
 printing in the next page?

Not possible or nobody understood?

Marcos Douglas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport: printing on the next page, using stretch and breaked band

2012-12-14 Thread waldo kitty

On 12/14/2012 13:17, Marcos Douglas wrote:

On Fri, Dec 14, 2012 at 8:05 AM, Marcos Douglasm...@delfire.net  wrote:

Hi,

I have a table with a memo field.
I put a retangle with stretch property True; the band is stretch and
breaked property too.

The question:
If the info is bigger than a page, how the report can continue
printing in the next page?


Not possible or nobody understood?


or it is the weekend and those who might are elsewhere? ;)

plus, it was only 12hours or so between the first post and the second ;)

i would help if i could but i'm still pretty much an observer in many instances 
;)


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazreport and frf binary format

2012-10-04 Thread patspiper

Hi,

How can a binary .frf file be converted to lazreport's .lfr format?

Trying to open a binary .frf file yields an 'Unsupported FRF format' error.

Stephano

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazreport and frf binary format

2012-10-04 Thread patspiper

On 04/10/12 15:12, patspiper wrote:

Hi,

How can a binary .frf file be converted to lazreport's .lfr format?

Trying to open a binary .frf file yields an 'Unsupported FRF format' 
error.

I have submitted a bug report (with patch).

http://bugs.freepascal.org/view.php?id=23058

Stephano

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazreport compilation problems with FPC trunk

2012-08-12 Thread Reinier Olislagers
Hi list,

I reported problems compiling Lazreport with FPC trunk in bug 22527

I'm trying to look for the cause, but the output doesn't show much:
Compiling lr_progr.pas
...
C:\development\lazarus_fpctrunk\components\lazreport\source\lr_progr.pas(1,1)
Fatal: Compilation aborted

And a lot of Warning: Implicit string type conversion from AnsiString
to WideString in between.

How can I dig deeper to try and find out what's causing this? I've
looked at the compiler options for the package, Messages, but all
messages seem to be enabled...

Thanks,
Reinier

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazreport compilation problems with FPC trunk

2012-08-12 Thread Reinier Olislagers
On 12-8-2012 12:57, Reinier Olislagers wrote:
 Hi list,
 
 I reported problems compiling Lazreport with FPC trunk in bug 22527
 
 I'm trying to look for the cause, but the output doesn't show much:
 Compiling lr_progr.pas
 ...
 C:\development\lazarus_fpctrunk\components\lazreport\source\lr_progr.pas(1,1)
 Fatal: Compilation aborted
 
 And a lot of Warning: Implicit string type conversion from AnsiString
 to WideString in between.
 
 How can I dig deeper to try and find out what's causing this? I've
 looked at the compiler options for the package, Messages, but all
 messages seem to be enabled...

Figured out I overlooked the Compiler Options/Verbosity settings for
some reason.
Setting verbosity to -va and keeping the package options generate debug
info (-g) and line numbers (-gl) gives:
... a lot of output...
lr_class.pas(11454,3) Note: Local variable wValue not used
lr_class.pas(21,52) Hint: Unit LMessages not used in LR_Class
Searching file lr_dbset.pas... found
Searching file lr_utils.pas... found
Searching file lr_dbrel.pas... found
Searching file lr_view.pas... found
Searching file lr_barc.pas... found
Fatal: Compilation aborted
An unhandled exception occurred at $00403FF9:
EStackOverflow: Stack overflow
  $00403FF9 line 410 of ../inc/sstrings.inc
  $005858F2 line 372 of dbgstabs.pas
  $0058852D line 1077 of dbgstabs.pas
  $00442D7B line 595 of dbgbase.pas
  $005307EA line 1095 of pmodules.pas
  $004335DA line 395 of parser.pas
  $00528318 line 1671 of fppu.pas
  $0052F35B line 483 of pmodules.pas
  $0052F521 line 545 of pmodules.pas
  $004335DA line 395 of parser.pas
  $00528318 line 1671 of fppu.pas
  $0052F35B line 483 of pmodules.pas
  $0052FF09 line 862 of pmodules.pas
  $004335DA line 395 of parser.pas
  $00528318 line 1671 of fppu.pas
  $0052F35B line 483 of pmodules.pas
  $0052F521 line 545 of pmodules.pas

Error: C:\development\fpctrunk\bin\i386-win32\ppc386.exe returned an
error exitcode

Hmmm? dbgstabs.pas suggests something to do with generating debug info
perhaps?

-va and no -g -gl does let Lazarus compile the package.

Perhaps the problem lies with the compiler instead of Lazreport?

Thanks,
Reinier

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazreport compilation problems with FPC trunk

2012-08-12 Thread Maxim Ganetsky

12.08.2012 20:12, Reinier Olislagers пишет:

On 12-8-2012 12:57, Reinier Olislagers wrote:

Hi list,

I reported problems compiling Lazreport with FPC trunk in bug 22527

I'm trying to look for the cause, but the output doesn't show much:
Compiling lr_progr.pas
...
C:\development\lazarus_fpctrunk\components\lazreport\source\lr_progr.pas(1,1)
Fatal: Compilation aborted

And a lot of Warning: Implicit string type conversion from AnsiString
to WideString in between.

How can I dig deeper to try and find out what's causing this? I've
looked at the compiler options for the package, Messages, but all
messages seem to be enabled...


Figured out I overlooked the Compiler Options/Verbosity settings for
some reason.
Setting verbosity to -va and keeping the package options generate debug
info (-g) and line numbers (-gl) gives:
... a lot of output...
lr_class.pas(11454,3) Note: Local variable wValue not used
lr_class.pas(21,52) Hint: Unit LMessages not used in LR_Class
Searching file lr_dbset.pas... found
Searching file lr_utils.pas... found
Searching file lr_dbrel.pas... found
Searching file lr_view.pas... found
Searching file lr_barc.pas... found
Fatal: Compilation aborted
An unhandled exception occurred at $00403FF9:
EStackOverflow: Stack overflow
   $00403FF9 line 410 of ../inc/sstrings.inc
   $005858F2 line 372 of dbgstabs.pas
   $0058852D line 1077 of dbgstabs.pas
   $00442D7B line 595 of dbgbase.pas
   $005307EA line 1095 of pmodules.pas
   $004335DA line 395 of parser.pas
   $00528318 line 1671 of fppu.pas
   $0052F35B line 483 of pmodules.pas
   $0052F521 line 545 of pmodules.pas
   $004335DA line 395 of parser.pas
   $00528318 line 1671 of fppu.pas
   $0052F35B line 483 of pmodules.pas
   $0052FF09 line 862 of pmodules.pas
   $004335DA line 395 of parser.pas
   $00528318 line 1671 of fppu.pas
   $0052F35B line 483 of pmodules.pas
   $0052F521 line 545 of pmodules.pas

Error: C:\development\fpctrunk\bin\i386-win32\ppc386.exe returned an
error exitcode

Hmmm? dbgstabs.pas suggests something to do with generating debug info
perhaps?

-va and no -g -gl does let Lazarus compile the package.

Perhaps the problem lies with the compiler instead of Lazreport?


Yes it is, compiler shouldn't crash.

--
Best regards,
 Maxim Ganetsky  mailto:gan...@narod.ru

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazreport compilation problems with FPC trunk

2012-08-12 Thread Reinier Olislagers
On 12-8-2012 18:50, Maxim Ganetsky wrote:
 12.08.2012 20:12, Reinier Olislagers пишет:
 On 12-8-2012 12:57, Reinier Olislagers wrote:
 I reported problems compiling Lazreport with FPC trunk in bug 22527
snip
 Hmmm? dbgstabs.pas suggests something to do with generating debug info
 perhaps?

 -va and no -g -gl does let Lazarus compile the package.

 Perhaps the problem lies with the compiler instead of Lazreport?
 
 Yes it is, compiler shouldn't crash.
Thanks. Updated bug report...


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazreport preview always in fullscreen mode

2012-03-10 Thread Alexsander Rosa
Is there an option to set right before you call ShowReport() to avoid it
open in fullscreen mode?

-- 
Atenciosamente,
Alexsander da Rosa
http://rednaxel.com
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport Database

2012-01-09 Thread Koenraad Lelong

On 05-01-12 18:07, Mattias Gaertner wrote:


Can you create a small example and a bug report?

Mattias



http://bugs.freepascal.org/view.php?id=21050

Koenraad

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] LazReport Database

2012-01-05 Thread Koenraad Lelong

Hi,

I was wondering if I found a bug in LazReport.
Like always, I put my database-components in a datamodule. Then I placed 
a frReport on a visible form. I started editing the report and I tried 
to place some database-fields on the report. Unfortunately, there were 
no fields available to place.


After experimenting for some time I found I had to place the dataset (or 
query) on the same form as the report. Then I can place database-fields 
on the report.


This is all at design-time. I didn't try this at run-time.

Is this an error or is this expected behaviour ?

Regards,

Koenraad Lelong.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


  1   2   >