PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to group elements together

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
gastan



Joined: 18 Oct 2008
Posts: 25

PostPosted: Sun Oct 26, 2008 12:10 pm    Post subject: How to group elements together Reply with quote

Hi

I am combining text and images, and I need to keep headings of images together with images, so they are always at the same page. Sometimes it happens, heading is at the end of one page, and image on another.
How could I group these elemets together, soe they wll both be flowing on to next page if at the end of page ?

thx
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Mon Oct 27, 2008 10:32 am    Post subject: Reply with quote

Hi!

You can set this with the style or the paragraph of the heading:
Code:
paragraph.Format.KeepWithNext = true;

_________________
Regards
Thomas Hoevel
PDFsharp Team
Back to top
View user's profile Send private message Visit poster's website
gastan



Joined: 18 Oct 2008
Posts: 25

PostPosted: Mon Oct 27, 2008 5:43 pm    Post subject: Reply with quote

thx very much
I'll give it a shot tonite
how about grouping two pics together ?

I tried to put them into paragrap, but then I was not able to position first pics (pic.Left didnt work)
normally I just add pics (generated from PDFSharp) via lastsection.AddImage("filename")
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Tue Oct 28, 2008 9:05 am    Post subject: Reply with quote

With pictures in paragraphs you should be able to use
Code:
paragraph.Format.LeftIndent

_________________
Regards
Thomas Hoevel
PDFsharp Team
Back to top
View user's profile Send private message Visit poster's website
gastan



Joined: 18 Oct 2008
Posts: 25

PostPosted: Wed Oct 29, 2008 9:14 pm    Post subject: Reply with quote

well, I position upper image depending on value (Arrow that points out value on the bar chart, so the left position is variable
I am not sure I can change styles on runtime.
Back to top
View user's profile Send private message
gastan



Joined: 18 Oct 2008
Posts: 25

PostPosted: Wed Oct 29, 2008 11:18 pm    Post subject: Reply with quote

well if I style i via paragraph, then both are LeftIdented.
I just need to move firt image to right, second should stay
Back to top
View user's profile Send private message
gastan



Joined: 18 Oct 2008
Posts: 25

PostPosted: Wed Oct 29, 2008 11:25 pm    Post subject: I made it Reply with quote

Well, I managed.
I added first pic to one paragraph with ident and keepwith next
and second in normal paragraph
it all sticked together.

cool deal
thx man
Back to top
View user's profile Send private message
gastan



Joined: 18 Oct 2008
Posts: 25

PostPosted: Thu Nov 06, 2008 10:22 pm    Post subject: Reply with quote

Hi

I have problem with keeping chart and text together
somehow it will not render part of chart at the bottom of the page (as it's out of bonds (I would rather to put it on next page along with it's caption)
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com