We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Can't access empty lines

Dear Aspose,

In the attached zip, you'll find a test sample for reproducing the problem.

I have a form that accepts a font size , and the application must generate all the reposts in this font size, everything works fine except the empty lines .

I can’t find a way to change the font size for the empty lines

Any idea please

Thanks,

Hi Mohammad,


Thanks for your inquiry. These empty lines are empty paragraphs actually and you can set their font size by using following property.
Paragraph.ParagraphBreakFont.Size

I hope this helps.

Hi,

Thanks for your quick reply , but sadly your solution did not work with me , please check the attached file.

Thanks,

Hi

Thanks for your request. You should simply modify your code as shown below:

' Get all paragraphs and reset font of paragraph end mark

Dim paragraphs As NodeCollection = TempDoc.GetChildNodes(NodeType.Paragraph, True)

For Each paragraph As Paragraph In paragraphs

paragraph.ParagraphBreakFont.Size = BookletFontSize

Next

' Do the same for Runs.

Dim runs As NodeCollection = TempDoc.GetChildNodes(NodeType.Run, True)

For Each run As Run In runs

run.Font.Size = BookletFontSize

Next

Best regards,

Many thanks it is working fine now.