Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Mar 11, 2021 9:36 am

Hello,
in a table, I have to divide a cell in two rows horizontally, only in some conditions and in some cells (not in all of them).
The split command divides a cells in two but vertically.
How can I do this?
thank you very much,
Paola
Last edited by paolagumi on Fri Mar 12, 2021 8:19 am, edited 1 time in total.

paolagumi
 
Posts: 85
Joined: Tue Apr 21, 2015 11:32 am

Thu Mar 11, 2021 9:55 am

sorry I solved: in the splitcell command I have to specify a column number lower than the row number, ex.: splitcell(1, 2)
bye,
Paola

paolagumi
 
Posts: 85
Joined: Tue Apr 21, 2015 11:32 am

Thu Mar 11, 2021 10:07 am

Glad to hear that you have found the solution.
If you encounter any issues related to our products in the future, please feel free to contact us.

Sincerely,
Brian
E-iceblue support
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Fri Mar 12, 2021 8:10 am

Hello,
I've got the problem that I can't refrer to the two created rows to set their height:

' split second row:
For nriga As Int32 = 0 To nmatr - 1

For ncell As Int32 = 1 To DateTime.DaysInMonth(Anno, Mese)
If nriga = 0 And (ncell < 10) Then
tblVestizione.Rows(nriga).Cells(ncell).SplitCell(1, 2)
tblVestizione.Rows(nriga).Height = 18 ----> this does not work, and how can I refer to the second row created?
tblVestizione.Rows(nriga).HeightType = TableRowHeightType.Exactly
End If
Next

Next
...maybe something with child obiects...?
thank you,
Paola

paolagumi
 
Posts: 85
Joined: Tue Apr 21, 2015 11:32 am

Fri Mar 12, 2021 9:40 am

Hello Paola,

Thanks for your inquiry.
I simulated a docx file with a table and tested your case, but I did not reproduce your issue. To help us investigate further, please provide us with your complete code and your input file (if there is) which can reproduce your issue. Thanks in advance.


Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Fri Mar 19, 2021 7:56 am

Hello,

Has your issue been resolved? If not, could you please provide your input file and your complete code to us for further investigation?

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.PDF

cron