Fax Image Processing in c#

D

David R Emerson

I'm working on a document storage / retrieval system in c#. The app
stores faxes in TIF format in SQL Server. I'm having a little trouble
I hope you folks can help me with:

Here's the first issue. When viewing a fax, i pull the data out of
sql server into an Image object and display it in a picture box.
Automatically the first frame (or page) is shown. I've got paging
working properly with First, Prev, Next, Last buttons all invoking
"SelectActiveFrame". Additionally while on any given page I have a
rotate button that works, however after rotating a page I can no
longer change pages. Here's my code that rotates the page. Any idea
why page swapping isn't working?

case "rotate":
thisDocument.RotateFlip(RotateFlipType.Rotate90FlipNone);
thisDocument.SelectActiveFrame(fd,currPage);
Render(thisDocument);
break;

Second. I'm having trouble with printing. I'm pretty sure I have the
code setup right, but whenever I print it's just printing the first
page n number of times (where n is the number of pages in the tiff
file). Here's my print event code:

private void printDoc_PrintPage(object sender,
System.Drawing.Printing.PrintPageEventArgs e)
{
if (pagePrinting <= pageCount)
{
thisDocument.SelectActiveFrame(fd,pagePrinting-1);
e.Graphics.DrawImage(thisDocument,0,0);
e.HasMorePages = true ;
pagePrinting++;
}
else
e.HasMorePages = false ;
}

If anyone could provide some insight on these issues it'd be greatly
appreciated. Thanks,

David
 
G

Guest

Hi David,

Thank you for posting in the community!

After reviewing your post, I think you have 2 problems.

For your issue, I think you can send a reproduce project to me, then I can
find out the problem for you. For your reproduce project, it is better
there is no database related code. It only use the existed tiff image in
the project.

Thanks for your understand, I will wait for your reproduce project.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
G

Guest

Hi David,

Have you viewed my reply?
Is your problem resolved? If you still have problem, please feel free to
feedback, and provide the reproduce project, we will help you.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
G

Guest

I am not sure about him however, i have a similar problem. i can not get to print a multi page TIFF file in VB.NET
Any help is appreciated
You can reach me at 973-390-499


----- ""Jeffrey Tan[MSFT]"" wrote: ----


Hi David

Have you viewed my reply?
Is your problem resolved? If you still have problem, please feel free to
feedback, and provide the reproduce project, we will help you

Best regards
Jeffrey Ta
Microsoft Online Partner Suppor
Get Secure! - www.microsoft.com/securit
This posting is provided "as is" with no warranties and confers no rights
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top