PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Jul 18, 2024 7:28 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Sep 19, 2010 11:47 pm 
Offline

Joined: Fri Sep 17, 2010 5:35 pm
Posts: 1
I'm trying to create a style for a row. When I run it to generate the mddl and display it in the preview it throws an exception. I got around the exception by removing the Format->Font section of the DataRowHeader. Even though it runs and displays in the preview, the rest of the styles are not being applied, for instance, there is no underline. I looked through the source and it looks like it tries to serialize the Format in the Row.cs class:

if (!this.IsNull("Format"))
this.format.Serialize(serializer, "Format", null);

As well as process the borders:
if (!this.IsNull("Borders"))
this.borders.Serialize(serializer, null);

But nothing is being displayed properly. I've attached the output of my mddl file.

Thanks.


Attachments:
File comment: Contains mddl file to demonstrate the unsuccessful row format style.
RowFormat.zip [1.09 KiB]
Downloaded 364 times


Last edited by kumaichi on Mon Sep 20, 2010 12:49 pm, edited 1 time in total.
Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 20, 2010 7:22 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
kumaichi wrote:
Ok, so I tried uploading the file but it told me, mddl, txt and no ext wasn't allowed. So, I'm pasting the mddl data below

Bad idea. Just attach a ZIP file.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 35 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group