AD
Administrator
Syncfusion Team
August 10, 2006 05:24 AM UTC
Hi Lan,
Thank you for your interest in Syncfusion products.
Regarding your issues,
1."InsertSymbolTool could not be found"
As with the version V4.2.0.37,InsertNodeTool and InsertSymbolTool are no longer valid.Please use InsertNodeCmd instead. Diagram Samples\Symbol Design\Dynamic Symbol sample has been modified to show this change. However we have included the InsertSymbolTool and either the next patch version of the Essential Diagram will be shipped with the InsertSymbolTool.
Also,if you need to reimplement InsertSymbolTool feature , then I have created a sample implementing similar to this feature.Kindly, refer the attachment.Select the MyInsertSymbolTool button and drag the pointer inside the drawing area to view the tracking lines.
MyInsertSymbolTool_Sample.zip2."IPDFDocument could not be found"
You need to add the Syncfusion.pdf.Windows and Syncfusion.pdf.Base DLLs to your references folder.Also add the namespace Syncfusion.Pdf to your project application.To work with PDF you need to install Essential PDF.
I hope this information will help you.Please try if it is possible to upgrade to the latest version that ships with InsertSymbolTool feature.
Please do let us know if we can be of further assistance .
Regards,
Praveena.
AD
Administrator
Syncfusion Team
August 10, 2006 03:40 PM UTC
Hello Praveena,
Thank you for help. I''ve solved 2."IPDFDocument could not be found".
For the 1."InsertSymbolTool could not be found", I want to know when and how I can get the patch which includes the InsertSymbolTool. I don''t want to change the code if possible.
Thanks,
Lan
>Hi Lan,
Thank you for your interest in Syncfusion products.
Regarding your issues,
1."InsertSymbolTool could not be found"
As with the version V4.2.0.37,InsertNodeTool and InsertSymbolTool are no longer valid.Please use InsertNodeCmd instead. Diagram Samples\Symbol Design\Dynamic Symbol sample has been modified to show this change. However we have included the InsertSymbolTool and either the next patch version of the Essential Diagram will be shipped with the InsertSymbolTool.
Also,if you need to reimplement InsertSymbolTool feature , then I have created a sample implementing similar to this feature.Kindly, refer the attachment.Select the MyInsertSymbolTool button and drag the pointer inside the drawing area to view the tracking lines.
MyInsertSymbolTool_Sample.zip2."IPDFDocument could not be found"
You need to add the Syncfusion.pdf.Windows and Syncfusion.pdf.Base DLLs to your references folder.Also add the namespace Syncfusion.Pdf to your project application.To work with PDF you need to install Essential PDF.
I hope this information will help you.Please try if it is possible to upgrade to the latest version that ships with InsertSymbolTool feature.
Please do let us know if we can be of further assistance .
Regards,
Praveena.
AD
Administrator
Syncfusion Team
August 11, 2006 05:39 AM UTC
Hi Lan,
Glad to hear that you got resolved with the issue regarding PDF.
For the diagram issue,could you please follow the update on incident #27467?.We have provided you the required details for downloading the patch.
Thanks & Regards,
Praveena.
AD
Administrator
Syncfusion Team
August 24, 2006 06:12 PM UTC
I am sorry I still have this problem related Syncfusion.Pdf.IPDFDocument
Error 2 The type or namespace name ''IPDFDocument'' could not be found (are you missing a using directive or an assembly reference?) C:\PMA\STN.PMA.UL\clsGrid.cs 330 34 STN.PMA.UL
The function uses IPDFDocumnet is to setup title.
It looks like the new version V4.2.0.60 has dropped or changed ''Syncfusion.Pdf.IPDFDcoument'' that exists in Ver3.3.0.0
Any idea to get around it?
Lan
private static void AddHeader( IPDFDocument doc, string title, string description )
{
if( doc == null )
{
throw new ArgumentNullException( "doc" );
}
if( title == null )
{
throw new ArgumentNullException( "title" );
}
const int offset = 10;
try
{
// Add the header
ITemplate header = doc.CreateTemplate();
//Add the font that will be used in the header
IPDFFont font = doc.Fonts.Add( FontBaseFamily.HelveticaBold );
//Define font properties for the header.
font.Size = 24;
//Just to make sure that we have enough space in the header.
float doubleHeight = font.Height * 2;
Color activeColor = Color.FromArgb( 44, 71, 120 );
//Add Logo Image
//IPDFGraphicState is used for setting properties of all drawing objects.
IPDFGraphicState props = doc.CreateGraphicState();
SizeF imageSize = new SizeF( 50f, 25f );
//Add Title Tab
props = doc.CreateGraphicState();
props.TextAlignment = TextAlignment.Center;
props.ForeColor = activeColor;
props.Scale( 0.8f, 0.7f );
props.Padding = new PDFPadding( offset * 2, 0, ( int )imageSize.Width, 0 );
header.Graphics.DrawMultiText( offset, 5, doc.LastPage.DrawingWidth, font.Height, title, font, props );
SizeF headerSize;
//Add description tag
if( description != null && description.Length > 0 )
{
headerSize = header.Size;
font = doc.Fonts.Add( FontBaseFamily.HelveticaOblique );
font.Size = 8;
props = doc.CreateGraphicState();
props.TextAlignment = TextAlignment.Justify;//Near;
props.Padding = new PDFPadding( offset, 0, 0, 0 );
props.ForeColor = Color.Gray;
header.Graphics.DrawMultiText( 0, headerSize.Height,
doc.LastPage.DrawingWidth, font.Height, description, font, props );
}
//Add the border effect.
headerSize = header.Size;
headerSize.Height += 10;
activeColor = Color.FromArgb( 139, 164, 204 );
props = doc.CreateGraphicState();
props.ForeColor = activeColor;
header.Graphics.DrawLine( 0, 0, headerSize.Width, 0 );
header.Graphics.DrawLine( 0, headerSize.Height, headerSize.Width, headerSize.Height );
header.Graphics.DrawLine( 0, 0, 0, headerSize.Height );
header.Graphics.DrawLine( headerSize.Width-10, 0, headerSize.Width-10, headerSize.Height );
props = doc.CreateGraphicState();
props.LineWidth = 2;
props.ForeColor = activeColor;
header.Graphics.DrawLine( 0, 2, headerSize.Width, 2, props );
header.Graphics.DrawLine( 0, headerSize.Height - 2, headerSize.Width, headerSize.Height - 2, props );
header.Graphics.DrawLine( 0, 5, headerSize.Width, 5 );
header.Graphics.DrawLine( 0, headerSize.Height - 5, headerSize.Width, headerSize.Height - 5 );
doc.Header = header;
}
catch (Exception exp)
{
clsComm.MsgBox(exp.Message );
}
}
>
Hi Lan,
Glad to hear that you got resolved with the issue regarding PDF.
For the diagram issue,could you please follow the update on incident #27467?.We have provided you the required details for downloading the patch.
Thanks & Regards,
Praveena.
DK
Dhivya K
Syncfusion Team
August 31, 2006 05:02 AM UTC
Hi Lan,
Regarding this issue "''IPDFDocument'''' could not be found",
1. "IPDFDocument" has been made internal and no longer valid in 4.2.0.37 version.Please use "PDFDocument" instead.
2. Also IPDFTemplateArea has to be used instead of ITemplate.
Here is a sample for your reference.
sample.zip
Please take a look in to it and let me know if you have any other queries.
Thanks,
Dhivya.K