PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Sun Jul 13, 2025 9:12 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules

Also see our new Tailored Support & Services site.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Align Text in rectangle
PostPosted: Wed Apr 21, 2010 6:54 pm 
Offline

Joined: Wed Apr 21, 2010 6:31 pm
Posts: 3
Hi,
At first let me appreciate you for great utility which you prepared.
I have a problem when I want to algin my text in rectangle, I receive below message
"Error 9 The type 'System.Windows.Rect' is defined in an assembly that is not referenced. You must add a reference to assembly 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'."
Could you please do me a favor and let me know what what is the problem in my code, I enclosed my code for your information.

these are all of my using:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using System.Data.SqlClient;
using System.IO;
using Excel = Microsoft.Office.Interop.Excel;
using System.Reflection;
using AE_ModifyValue;
using dbUtility;

//For PDF Files
using System.Diagnostics;
using PdfSharp;
using PdfSharp.Drawing;
using PdfSharp.Pdf;
using PdfSharp.Pdf.IO;
using PdfSharp.Windows;


Thank you in advance for your time
Alex


Attachments:
pdfsharp_01.jpg
pdfsharp_01.jpg [ 146.39 KiB | Viewed 6764 times ]
Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 22, 2010 7:50 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3131
Location: Cologne, Germany
What you must do: "You must add a reference to assembly 'WindowsBase'"

Find the References of your project and select "Add References..." from the context menu.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 22, 2010 1:44 pm 
Offline

Joined: Wed Apr 21, 2010 6:31 pm
Posts: 3
Thank you so much


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 11 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