473,326 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Fax Image Processing in c#

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.Rotate90Fli pNone);
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
Nov 15 '05 #1
5 3435

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.

Nov 15 '05 #2

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.

Nov 15 '05 #3

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.

Nov 15 '05 #4
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
Nov 16 '05 #5
Forgot give you my emai
pa****@glassoc.com
Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Alexandre Fayolle | last post by:
Hello, I'm about to start a project which will involve some greyscale image processing using morphological operators (erosion, dilation, distance transforms...), and I was wondering if these...
0
by: Andreas Håkansson | last post by:
Hiya! I'm currently looking for a good image processig component (classes) to use in a project. I do not want to controls (winform or webform) since I will be doing this with code. I actually...
2
by: Maxwell2006 | last post by:
Hi, I am developing a simple image upload asp.net page and I am looking for a simple image processing component to be able to change the image resolution of jpg images and also reduce the...
10
by: stonny | last post by:
Hi, I am converting my matlab program into C/C++. I need to change some image processing toolbox functions into C/C++, such as edge detection, mathematical morphology. Is there any place that I...
5
by: edurand | last post by:
Hi, We are are pleased to announce the version 3.0 of the image processing library 'Filters'. You can use it in Python, and we have provided tutorials and samples in Python, with for exemple...
3
by: birensubudhi | last post by:
hey guys,can anyone tell me what is image processing, how to do it using C. IN KSHITIJ 2007 held at IIT kgp a que by INFOSYS is asked, they hav given an image then cut in different orientation...
26
by: mohangupta13 | last post by:
can anyone help me where to find the best image processing library for c++ mohan gupta
5
by: whisk3rs | last post by:
Hello, I have a conceptual question. I need to write a program that will take as input a list of images and then process each image individually (extract useful features from the image) ...
0
by: tavares | last post by:
(Our apologies for cross-posting. We appreciate if you kindly distribute this information by your co- workers and colleagues.) ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.