Hi Leila,
Thank you for your interest in Syncfusion products.
1.How can I add this text to the PrintDocument before it is displayed on the PrintPreview Dialog or sent the printer ?
If your intension is to add title and text to chart control, you can refer the following online documentation link mentioned below,
http://help.syncfusion.com/ug_84/User%20Interface/Windows%20Forms/Chart/Documents/multiplecharttitles1.htmhttp://help.syncfusion.com/ug_84/User%20Interface/Windows%20Forms/Chart/Documents/custompoints1.htmIf we add the title and text to the chart control, you will be able to print the chart with multiple title and text.
Or, If your intension is to add title and text to PrintDocument, kindly refer to the below code snippet to achieve this,
[VB]
PrintPreviewButton_click Event:
For Each lControl As Control In chartControl1.Controls
If TypeOf (lControl) Is ChartTitle Then
title.Text = "Custom Chart Title" ‘Add title to chart
chartControl1.Titles.Add(title)
End If
Dim lPageSetupDialog1 As New System.Windows.Forms.PageSetupDialog
chartControl1.PrintDocument.PrinterSettings = New Printing.PrinterSettings
lPageSetupDialog1.Document = chartControl1.PrintDocument
2. How can I extract an image of my Syncfusion graph in order to add it to the print document ?
You can use “SaveImage” property of chart to extract the chart image and add it to the print document. kindly refer to the below code snippet to achieve this,
[VB]
Me.chartControl1.SaveImage("chart.jpg")
You can refer the following online documentation link mentioned below,
http://help.syncfusion.com/ug_84/User%20Interface/Windows%20Forms/Chart/Documents/exportingasanimage1.htmPlease let me know if i misunderstood your query, please share us the sample that you pointed out by you in the previous post so that we could analyze the cause of the issue and provide you with a solution?
Regards,
Vijayabharathi K