Click here to Skip to main content
15,889,863 members
Home / Discussions / C#
   

C#

 
AnswerRe: How Can I Read Z- Segment In HL7 result message using Nhapi (ZPS)...? Pin
Bernhard Hiller28-Oct-14 22:16
Bernhard Hiller28-Oct-14 22:16 
Questionword Wrapping in richtextbox using C# Pin
verenaJam27-Oct-14 22:56
verenaJam27-Oct-14 22:56 
AnswerRe: word Wrapping in richtextbox using C# Pin
BillWoodruff28-Oct-14 1:07
professionalBillWoodruff28-Oct-14 1:07 
GeneralRe: word Wrapping in richtextbox using C# Pin
verenaJam28-Oct-14 18:25
verenaJam28-Oct-14 18:25 
GeneralRe: word Wrapping in richtextbox using C# Pin
BillWoodruff28-Oct-14 20:57
professionalBillWoodruff28-Oct-14 20:57 
AnswerRe: word Wrapping in richtextbox using C# Pin
Vitor Breno28-Oct-14 9:04
Vitor Breno28-Oct-14 9:04 
GeneralRe: word Wrapping in richtextbox using C# Pin
verenaJam28-Oct-14 18:18
verenaJam28-Oct-14 18:18 
SuggestionMaking charts with pdfsharp Pin
Mol4ok27-Oct-14 5:30
Mol4ok27-Oct-14 5:30 
Hello to everybody!

Excuse me for my question, but i really met with difficult situation.

I use pdfsharp library for making pdf reports, i read http://www.pdfsharp.net/ here samples and all as good, while i had to make a simple chart. For example this one:
public static Chart CombinationChart()
    {
      Chart chart = new Chart();
      Series series = chart.SeriesCollection.AddSeries();
      series.ChartType = ChartType.Column2D;
      series.Add(new double[] { 1, 17, 45, 5, 3, 20, 11, 23, 8, 19 });
      series.HasDataLabel = true;

      series = chart.SeriesCollection.AddSeries();
      series.ChartType = ChartType.Line;
      series.Add(new double[] { 41, 7, 5, 45, 13, 10, 21, 13, 18, 9 });

      XSeries xseries = chart.XValues.AddXSeries();
      xseries.Add("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N");

      chart.XAxis.MajorTickMark = TickMarkType.Outside;
      chart.XAxis.Title.Caption = "X-Axis";

      chart.YAxis.MajorTickMark = TickMarkType.Outside;
      chart.YAxis.HasMajorGridlines = true;

      chart.PlotArea.LineFormat.Color = XColors.DarkGray;
      chart.PlotArea.LineFormat.Width = 1;
      chart.PlotArea.LineFormat.Visible = true;

      chart.Legend.Docking = DockingType.Left;
      chart.Legend.LineFormat.Visible = true;

      return chart;
    }


This function returns the chart, but i can't place it to my pdf any way(((

My way creating pdf:
PdfDocument document = new PdfDocument();
document.Info.Title = "Created with PDFsharp";
PdfPage page = document.AddPage();
XGraphics gfx = XGraphics.FromPdfPage(page);
XFont font = new XFont("Verdana", 20, XFontStyle.BoldItalic);
gfx.DrawString("Hello, World!", font, XBrushes.Black,
new XRect(0, 0, page.Width, page.Height),

XStringFormats.Center);

const string filename = "HelloWorld.pdf";

document.Save(filename);

Process.Start(filename);


So the chart is to be in HelloWorld.pdf, but how to send it there, is it possible? Or it is possible only if i download library Migradoc?

Thank you, I'd appreciate any information you could give me
GeneralRe: Making charts with pdfsharp Pin
Richard Deeming27-Oct-14 9:49
mveRichard Deeming27-Oct-14 9:49 
GeneralRe: Making charts with pdfsharp Pin
Mol4ok27-Oct-14 17:09
Mol4ok27-Oct-14 17:09 
GeneralRe: Making charts with pdfsharp Pin
Richard Deeming28-Oct-14 2:12
mveRichard Deeming28-Oct-14 2:12 
GeneralRe: Making charts with pdfsharp Pin
Mol4ok28-Oct-14 3:24
Mol4ok28-Oct-14 3:24 
GeneralRe: Making charts with pdfsharp Pin
Gerry Schmitz27-Oct-14 22:35
mveGerry Schmitz27-Oct-14 22:35 
GeneralRe: Making charts with pdfsharp Pin
Mol4ok28-Oct-14 2:11
Mol4ok28-Oct-14 2:11 
GeneralRe: Making charts with pdfsharp Pin
Gerry Schmitz28-Oct-14 9:45
mveGerry Schmitz28-Oct-14 9:45 
QuestionExpression to Check for a String Value in All Properties of a Type Pin
Agent__00727-Oct-14 1:42
professionalAgent__00727-Oct-14 1:42 
AnswerRe: Expression to Check for a String Value in All Properties of a Type Pin
Eddy Vluggen28-Oct-14 9:09
professionalEddy Vluggen28-Oct-14 9:09 
GeneralRe: Expression to Check for a String Value in All Properties of a Type Pin
Agent__00728-Oct-14 17:24
professionalAgent__00728-Oct-14 17:24 
GeneralRe: Expression to Check for a String Value in All Properties of a Type Pin
Eddy Vluggen29-Oct-14 8:57
professionalEddy Vluggen29-Oct-14 8:57 
AnswerRe: Expression to Check for a String Value in All Properties of a Type Pin
Alaric_28-Oct-14 10:22
professionalAlaric_28-Oct-14 10:22 
GeneralRe: Expression to Check for a String Value in All Properties of a Type Pin
Agent__00728-Oct-14 17:26
professionalAgent__00728-Oct-14 17:26 
AnswerRe: How I Got it (Partially) Done Pin
Agent__00728-Oct-14 17:08
professionalAgent__00728-Oct-14 17:08 
Questioninherit a observablecollection Pin
cicill27-Oct-14 0:39
cicill27-Oct-14 0:39 
AnswerRe: inherit a observablecollection Pin
BillWoodruff27-Oct-14 1:50
professionalBillWoodruff27-Oct-14 1:50 
QuestionExtraction of data from excel to databae Pin
Member 1118244626-Oct-14 21:38
Member 1118244626-Oct-14 21:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.