PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

Missing namespaces
http://forum.pdfsharp.com/viewtopic.php?f=2&t=3855
Page 1 of 1

Author:  LuigiVampa [ Tue Oct 09, 2018 8:44 am ]
Post subject:  Missing namespaces

Hello,
I've downloaded a MigraDoc sample to play with using the NuGet manager on Visual Studio but I can't figure out what namespaces I'm missing.

Ones I've added already;

using PdfSharp;
using PdfSharp.Charting;
using PdfSharp.Drawing;
using PdfSharp.Drawing.BarCodes;
using PdfSharp.Drawing.Layout;
using PdfSharp.Fonts;
using PdfSharp.Fonts.OpenType;
using PdfSharp.Forms;
using PdfSharp.Pdf;
using PdfSharp.Pdf.AcroForms;
using PdfSharp.Pdf.Actions;
using PdfSharp.Pdf.Advanced;
using PdfSharp.Pdf.Annotations;
using PdfSharp.Pdf.Content;
using PdfSharp.Pdf.Content.Objects;
using PdfSharp.Pdf.Filters;
using PdfSharp.Pdf.IO;
using PdfSharp.Pdf.Printing;
using PdfSharp.Pdf.Security;

using MigraDoc;
using MigraDoc.DocumentObjectModel;
using MigraDoc.DocumentObjectModel.Fields;
using MigraDoc.DocumentObjectModel.Internals;
using MigraDoc.DocumentObjectModel.IO;
using MigraDoc.DocumentObjectModel.Shapes;
using MigraDoc.DocumentObjectModel.Shapes.Charts;
using MigraDoc.DocumentObjectModel.Tables;
using MigraDoc.DocumentObjectModel.Visitors;
using MigraDoc.Rendering;
using MigraDoc.Rendering.ChartMapper;
using MigraDoc.Rendering.Forms;
using MigraDoc.Rendering.Printing;
using MigraDoc.RtfRendering;



Code still throwing errors. Everything underlined isn't recognised.

// Create a MigraDoc document
Document document = Documents.CreateDocument();

Styles.DefineStyles(document);

Cover.DefineCover(document);
TableOfContents.DefineTableOfContents(document);

DefineContentSection(document);

Paragraphs.DefineParagraphs(document);
Tables.DefineTables(document);
Charts.DefineCharts(document);


Anyone any ideas?

Thanks.

Author:  Thomas Hoevel [ Tue Oct 09, 2018 10:20 am ]
Post subject:  Re: Missing namespaces

Hi!
LuigiVampa wrote:
Anyone any ideas?
Do not use snippets from the sample code on the web site, download the complete sample code from GitHub and you will have all methods, all references, all "using" statements.
https://github.com/empira/MigraDoc-samples

Author:  LuigiVampa [ Tue Oct 09, 2018 10:33 am ]
Post subject:  Re: Missing namespaces

Hello Thomas,
Thank you, will do.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/