Problem with PrintSection - doesn’t appear

31 views
Skip to first unread message

Benjamin Hoewler

unread,
Feb 4, 2026, 1:36:33 PMFeb 4
to Migrated By Firefly

Have a problem with PrintSection (doesn’t appear), after duplicating a form, to be used as model / base for a new print.

So, some extracts of code and the points that doesn’t work with comment:

----------

#region Printing Layouts

Printing.DecomptesPro_formaSceneContenuDecomptes _layout;

Printing.DecomptesPro_formaSceneContenuDecomptes2 _layout2;                                <= new, created by duplicate the first form and adapted the content

#endregion

...

InitializeDataView();

_layout = new Printing.DecomptesPro_formaSceneContenuDecomptes(this);

_layout2 = new Printing.DecomptesPro_formaSceneContenuDecomptes2(this);             <= new one

//… etc. for each language

... 

//ONLOAD

Streams.Add(_ioDecomptesMembres);

_layout.Reset();

_layout2.Reset();                                                                                                                  <= new one

...

//Group_Enter()

if (Exp_FR())                                                                                                                         <= for now, always true

{

_ioDecomptesMembres.NewPage();

if (u.Trim(THE_NOS_DECOMPTES.IPI_MEMBRE_NO.Value) != "")                    <= true

{

                       _layout.EnteteF.WriteTo(_ioDecomptesMembres);                                    <= this one is not all the time printed, even the debug stop there, and in the designer code,

I can see the _ioDecomptesMembres.HeightForLineFunc

with the value of EnteteF length when printed, and still zero in other case …

}

else

{

_layout.EnteteF_Soc.WriteTo(_ioDecomptesMembres);

}

}

...

//OnLeaveRow()

if (Exp_FR())

{

           _layout.DetailF.WriteTo(_ioDecomptesMembres);                                                  <= this one is not all the time printed, same zero still in the current length

}

...

if (Exp_FR())

{

_layout.LigneVideF.WriteTo(_ioDecomptesMembres);                                           <= this one is all the time printed, no problem, and length is also updated

}

...

//Group_Leave()

if (Exp_FR())

{

    if (MontantTotalMembre >= 0)                                                                                          <= true

    {

_layout.PiedDecompteF.WriteTo(_ioDecomptesMembres);                                   <= this one is all the time printed, no problem, and length is also updated

    }

    if (MontantTotalMembre < 0)

    {

_layout.PiedCorrectionDecompteF.WriteTo(_ioDecomptesMembres);

    }

}

---------- 

At the end, the PDF content is only : LigneVideF + PiedDecompteF (file1,pdf)

Instead of : EnteteF + DetailF + LigneVideF + PiedDecompteF (file2.jpg, image because of content to be hide)

Any idea on the reason ?

How to debug this ?

I already tried to completely change names, form/class and inside the different areas … no success.

It appeared after I duplicated the form, even content was adapted, so the compilation is 100%

Thanks in advance, regards,

Ben

file2.jpg
file1.PDF

Harry Kleinsmit

unread,
Feb 5, 2026, 4:39:38 AMFeb 5
to Migrated By Firefly
Hi Ben,

A colleague of mine had a similar problem this week. It turned out he forgot a Columns.Add(). On a screen form you get the 'most seen and annoying error in Firefly' but on a print form it just doesn't print the form.

Best regards,
Harry Kleinsmit.

Op woensdag 4 februari 2026 om 19:36:33 UTC+1 schreef benj...@hoewler.ch:

Florian Groothuis

unread,
Feb 5, 2026, 4:41:02 AMFeb 5
to Migrated By Firefly
I had the same thing a few days ago. Turned out I forgot a Columns.Add(). Apparently with a report this mistake is NOT reported in some kind of error message. I found by creating a new section and adding all fields one by one and test it. After dropping the field with the missing Columns.Add() the report section was skipped.

Op woensdag 4 februari 2026 om 19:36:33 UTC+1 schreef benj...@hoewler.ch:

Have a problem with PrintSection (doesn’t appear), after duplicating a form, to be used as model / base for a new print.

Benjamin Hoewler

unread,
Feb 5, 2026, 1:16:13 PMFeb 5
to Migrated By Firefly
Oh great, YES, that was it... so a big thank you to Harry Kleinsmit and Florian Groothuis!
That doesn't explain how it worked correctly before this form was copied...
I think it would be a good idea for FireFly to add some kind of error message, like in the online program when a column appears to be missing.

Best regards,
Ben

szw...@hapit.nl

unread,
Feb 6, 2026, 2:07:23 AMFeb 6
to Migrated By Firefly
Hi Ben,

As I have experienced this more than once, I can say that you can find the message in the Output window when the program is running.
Reply all
Reply to author
Forward
0 new messages