Printing with Annotations
Posted: Wed Feb 29, 2012 2:32 pm
Hi,
I am trying to print an image from a file and include annotations on the print in 8.5
When adding the annotations to the file and saving I am setting the printable property of the annotation to true. However when I go to print the file it is not printing the annotation that is there.
I am using the following code to print the file:
public void PrintDocument(string filePath)
{
int imageID;
if (File.Exists(filePath))
{
try
{
imageID = _imaging.CreateGdPictureImageFromFile(filePath);
_imaging.Print(imageID);
_imaging.ReleaseGdPictureImage(imageID);
}
catch
{ }
}
}
I did alter the code while I was stepping through to open the file in the annotation manager and check that the annotation was in fact there and that its printable property was set to true.
I've attached a test file which isn't working here.
I am trying to print an image from a file and include annotations on the print in 8.5
When adding the annotations to the file and saving I am setting the printable property of the annotation to true. However when I go to print the file it is not printing the annotation that is there.
I am using the following code to print the file:
public void PrintDocument(string filePath)
{
int imageID;
if (File.Exists(filePath))
{
try
{
imageID = _imaging.CreateGdPictureImageFromFile(filePath);
_imaging.Print(imageID);
_imaging.ReleaseGdPictureImage(imageID);
}
catch
{ }
}
}
I did alter the code while I was stepping through to open the file in the annotation manager and check that the annotation was in fact there and that its printable property was set to true.
I've attached a test file which isn't working here.