Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C# by alkokaine ( 15 years ago )
public void FillTable(object _ds)
        {
            if (_ds != null)
            {

                IPdfTableRow _pe = _ds as IPdfTableRow;
                ICollection _icol = _ds as ICollection;

                if (_icol == null || _icol.Count == 0) return;
                if (_pe != null)
                {
                    _pe.Font = font;
                    Rows.Add(_pe.Row);
                }
                foreach (object _o in _icol)
                {
                    IPdfTableRow _ipe = _o as IPdfTableRow;
                    if (_ipe == null) return;
                    _ipe.Font = font;
                    Rows.Add(_ipe.Row);
                    foreach (object _oo in MSCOPdfDecorator.GetChildObjectToFill(_o))
                    {
                        FillTable(_oo);
                    }
                }
            }
        }

 

Revise this Paste

Your Name: Code Language: