PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Wed Jul 10, 2024 8:30 am

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: Mon Jun 27, 2011 12:47 pm 
Offline

Joined: Wed Jun 22, 2011 7:32 am
Posts: 12
Hi,

How to set the image height and width ,that added using paragraph AddImage()?


Top
 Profile  
Reply with quote  
PostPosted: Mon Jun 27, 2011 3:05 pm 
Offline

Joined: Wed Jun 22, 2011 7:32 am
Posts: 12
I solved like this

Code:
Paragraph pgScanImage = section1.AddParagraph();
pgScanImage.Elements.AddLineBreak();
MigraDoc.DocumentObjectModel.Shapes.Image SacnImage1 = pgScanImage.AddImage("//Resources//" + scanImage1 + ".png");
SacnImage1.Height = "130pt";
SacnImage1.LockAspectRatio = true;


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 10 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