Hi Alex,
I am currently evaluating your imaging software for my WPF application.
Everything is looking really good so far and I must compliment you on an excellent product.
In order to use your VintaSoft.Imaging.dll in WPF I had to create a Windows Form Control and run it from there.
I can perform all of the basic functions correctly (next/back, zoom in/out, rotate) except that when I tried to print when I received the following error;
Vintasoft.Imaging.Codecs.DecoderException: Image is locked and cannot be reloaded.
at Vintasoft.Imaging.VintasoftImage.Reload(Boolean imageChanged)
at Vintasoft.Imaging.VintasoftImage.set_RenderingSettings(RenderingSettings value)
at Vintasoft.Imaging.ImageCollection.SetRenderingSettings(RenderingSettings renderingSettings)
at WinFrmCntrl_Viewer_V2.WinFrmCntrl_Viewer1.imagePrintDocument1_BeginPrint(Object sender, PrintEventArgs e)
at System.Drawing.Printing.PrintDocument.OnBeginPrint(PrintEventArgs e)
at Vintasoft.Imaging.Print.ImagePrintDocument.OnBeginPrint(PrintEventArgs e)
at System.Drawing.Printing.PrintDocument._OnBeginPrint(PrintEventArgs e)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.Print()
at WinFrmCntrl_Viewer_V2.WinFrmCntrl_Viewer1.printToolStripMenuItem_Click(Object sender, EventArgs e)
at WinFrmCntrl_Viewer_V2.WinFrmCntrl_Viewer1.PrintToolStripButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Can you please let me know what settings I should use to enable the Print function to work?
Thank you.
WPF Printing
Moderator: Alex
Re: WPF Printing
Hello Richard,
We have fixed some bugs in version 4.3.5.1. Please download the latest evaluation version of VintaSoftImaging.NET SDK from our we site and evaluate it - I think you will not have any problems.
Best regards, Alexander
We have fixed some bugs in version 4.3.5.1. Please download the latest evaluation version of VintaSoftImaging.NET SDK from our we site and evaluate it - I think you will not have any problems.
Best regards, Alexander
-
- Posts: 3
- Joined: Fri Dec 03, 2010 1:58 am
Re: WPF Printing
Hi Alex,
I downloaded and installed the latest build as you suggested.
After some further testing I narrowed down the problem to just the rotate functionality.
Apparently when an image is rotated it is locked and cannot be printed.
http://support.microsoft.com/?id=814675
I first tried to automatically reload the image prior to printing but I can't seem to get it right since I end up with a zero count in the image viewer.
In the meantime I have put in a workaround to just disable the print button if an image is rotated but I would like to find a way to either unlock the image(s) for printing or be able to automatically reload them for printing.
Richard
I downloaded and installed the latest build as you suggested.
After some further testing I narrowed down the problem to just the rotate functionality.
Apparently when an image is rotated it is locked and cannot be printed.
http://support.microsoft.com/?id=814675
I first tried to automatically reload the image prior to printing but I can't seem to get it right since I end up with a zero count in the image viewer.
In the meantime I have put in a workaround to just disable the print button if an image is rotated but I would like to find a way to either unlock the image(s) for printing or be able to automatically reload them for printing.
Richard
Re: WPF Printing
Hi Richard,
We cannot reproduce the problem. Could you send us a project that demonstrates the problem?
As I have understood you:
Best regards, Alexander
We cannot reproduce the problem. Could you send us a project that demonstrates the problem?
As I have understood you:
- loaded image
- rotated image
- printed image - on this step you had exception
Best regards, Alexander
-
- Posts: 3
- Joined: Fri Dec 03, 2010 1:58 am
Re: WPF Printing
Hi Alex,
I have sent a link to your email address that enable you to download the source code.
I have also pinned the problem down a little further to only rotated images in multi page PDF's.
Richard
I have sent a link to your email address that enable you to download the source code.
I have also pinned the problem down a little further to only rotated images in multi page PDF's.
Richard
Re: WPF Printing
Hello Richard,
I received your email but I cannot see the link...
Best regards, Alexander
I received your email but I cannot see the link...
Best regards, Alexander