public PDFGridExport() { string filename = String.Format("{0}_tempfile.pdf", Guid.NewGuid().ToString("D").ToUpper()); s_document = new PdfDocument(); s_document.Info.Title = "Tournament Test"; s_document.Info.Author = "Stanley"; s_document.Info.Subject = "Poop"; s_document.Info.Keywords = "PDFsharp, XGraphics"; // Create demonstration pages PdfPage page = s_document.AddPage(); XGraphics gfx = XGraphics.FromPdfPage(page); Base dra = new Base(); dra.DrawTourney(page, gfx); // Save the s_document... s_document.Save(filename); // ...and start a viewer Process.Start(filename); }