15,900,429 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Mary Abraham (Top 27 by date)
Mary Abraham
17-Apr-14 9:16am
View
Sorry I did not notice thank you so much
Mary Abraham
16-Apr-14 21:14pm
View
Thanks will do.
Mary Abraham
16-Apr-14 21:13pm
View
Hi I am asking how to find 03/06/2009 using regular expression using javascript
Mary Abraham
27-Jan-14 10:45am
View
Hi
can you help me in creating aspx page www.davidloo.com is windows application
I am able to create windows application but dont know how to create the same in aspx
because dont know what we can use instead of picture box control in asp.net
Mary Abraham
24-Jan-14 15:39pm
View
Hi I go the page count working but I dont know how to retrive page by page by clicking the button
my ashx page is
namespace WebApplication1
{
///
/// Summary description for Handler1
///
public class Handler1 : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
string path = context.Server.MapPath("~/image/045237302.tif");
Image img = Image.FromFile(path);
int count = img.GetFrameCount(FrameDimension.Page);
for (int idx = 0; idx < count; idx++);
MemoryStream byteStream = new MemoryStream();
//images.Add(Image.FromStream(byteStream));
img.Save(context.Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
context.Response.ContentType = "image/tif";
}
public bool IsReusable
{
get
{
return false;
}
}
}
}
My Default aspx page is
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Untitled Page</title>
<script runat="server">
protected void Button1_Click(object sender, EventArgs e)
{
//if (!IsPostBack){
Image img = new Image();
img.ImageUrl = "Handler1.ashx";
Page.Form.Controls.Add(img);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Display Tiff file" OnClick="Button1_Click"/>
<asp:Image ID="Image1" width="443px" Height ="380px" ImageUrl="~/Handler1.ashx"
runat="server" Visible="False" />
</div>
<asp:Button ID="Button2" runat="server" Text="Display next page" OnClick="Button1_Click" />
</form>
</body>
</html>
I dont know how to retrive pages by clicking the button it is only loading the first page but I got the count working.
Mary Abraham
24-Jan-14 12:38pm
View
My problem is I have a tiff image which has multipage
when I try to load it is only showing the first page how to get the page count of the file and display one by one.
Mary Abraham
22-Jan-14 12:15pm
View
I dont have any software to share my screen.
Mary Abraham
22-Jan-14 11:59am
View
Thanks so much
now it says parameter not valid in the line
new Bitmap(filename).Save(Response.OutputStream,imageFormat.Tiff)
What I am doing wrong
can you please help me.
Mary Abraham
22-Jan-14 11:38am
View
Deleted
Hi
I checked your solution and you are right that it is showing parameter not valid error
Where should I put the image It is in the image folder in solution explorer
can you help me. Have not hosted the site
so how should I give the path
Mary Abraham
22-Jan-14 10:38am
View
Hi Karthik
I am getting parameter not valid error when debugging but the image is in image folder
where should I put the image
This is first time I am displaying tiff image
Can you help me. Also the tiff image consist of multipage
Mary Abraham
22-Jan-14 9:51am
View
I have code like this in the aspx page
Mary Abraham
21-Jan-14 22:50pm
View
Thanks to all
Mary Abraham
17-Jan-14 22:39pm
View
yes I copied and pasted
Mary Abraham
17-Jan-14 13:48pm
View
Thanks all for helping me.
Mary Abraham
14-Jan-14 19:38pm
View
Hi Solved it the path was not correct.
Mary Abraham
13-Jan-14 22:56pm
View
Hi,
How to do that and also it says invalid path
Mary Abraham
13-Jan-14 22:55pm
View
HiI debug and saw it says invalid path the path is correct.
Mary Abraham
3-Jan-14 15:44pm
View
I want to read from another folder also how to read using add key . Can we use the same entity and read from another folder.
Thanks
Mary
Mary Abraham
6-Jul-12 12:27pm
View
The files are running in my localhost I have a doubt is app_data enough to run the files or I have to host the database separately.
Mary Abraham
6-Jul-12 9:17am
View
Thanks. I was able to host.
Mary Abraham
20-Jun-12 17:31pm
View
How do you down load sql server 2008 sp2 pl. reply with the site.
Mary Abraham
12-Jun-12 2:36am
View
I think now it is formated
Mary Abraham
12-Jun-12 2:35am
View
can I get an answer sorry for the inconvenience
Mary Abraham
9-May-12 13:26pm
View
Checked to see if myphotoalbum is null it is null. I dont knonw how to solve the problem. can you help me. Since I am learning I dont know how to solve.
Mary Abraham
10-May-11 9:24am
View
I accepted the second solution. I dont no how to generate a script.
Mary Abraham
13-Mar-11 21:31pm
View
Eliminated the error. It was out of scope error.
Mary Abraham
10-Mar-11 22:27pm
View
Thanks.Still I ?Have a problem. it is showing the expection error.
Show More