473,473 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

page to image image to email email to fax

Hello.

This one is kinda out there.

I have asp.net code that will email my yahoo account a <img> like with
image on the server. When I open it in yahoo I get the full image on
screen. works great.

Any way to create an image (in asp.net on the server) of full web page
- text and all. Currently I have dynamic on top of that image and can
do a screen print and fax it. Some how i'd like to automate the
process where I could press a button on the page and automagically my
filled in image form with text and all is emailed to an email to fax
service that will fax it to phyically fax machine somewhere.

Currently i have code to email any image i pass a specific page via a
variable in the address header mypage.aspx?whatimage=xxx.gif

and .

I have an aspx page that plugs data on top an image form via
varialbles form.aspx?name=jason?addr=4040%2055

Is this a wild dream? If not, point me in the right direction.

A big question will also be if any email to fax service would ever
process anything but text emails. I get the feeling so far is going to
be NO anyways.

Thanks.
Nov 18 '05 #1
3 1695
EO
Capturing a screenprint of a browser session is not possible through .net,
however, it may be possible with an activex control. I'd suggest posting in
an activex newsgroup.

<ja***@cyberpine.com> wrote in message
news:ef*************************@posting.google.co m...
Hello.

This one is kinda out there.

I have asp.net code that will email my yahoo account a <img> like with
image on the server. When I open it in yahoo I get the full image on
screen. works great.

Any way to create an image (in asp.net on the server) of full web page
- text and all. Currently I have dynamic on top of that image and can
do a screen print and fax it. Some how i'd like to automate the
process where I could press a button on the page and automagically my
filled in image form with text and all is emailed to an email to fax
service that will fax it to phyically fax machine somewhere.

Currently i have code to email any image i pass a specific page via a
variable in the address header mypage.aspx?whatimage=xxx.gif

and .

I have an aspx page that plugs data on top an image form via
varialbles form.aspx?name=jason?addr=4040%2055

Is this a wild dream? If not, point me in the right direction.

A big question will also be if any email to fax service would ever
process anything but text emails. I get the feeling so far is going to
be NO anyways.

Thanks.

Nov 18 '05 #2
"EO" <He****@ErnestOstrander.com> wrote in message news:<#e*************@TK2MSFTNGP11.phx.gbl>...
Capturing a screenprint of a browser session is not possible through .net,
however, it may be possible with an activex control. I'd suggest posting in
an activex newsgroup.

True, but actually rethinking my problem/objective out I see a better
approach for myself and will share what I have in hopes that somebody
here could help me and others that may follow.

I'm trying to fax out an image with data on top of that image. I
already have a fax provider that will fax emails with gif and jpg
attachements . And already have a button that will fax a specific
image .. and all that works great.

What I need to be able to do is write text on top of an image and save
that image with the dynamic Text. I think I'm close, but can't seem to
connect the dots. Here's what I have and the error I'm getting:

Credit to anybody who's code I grabbed off this newsgroups.

<%@ import namespace="System" %>
<%@ import namespace="System.Drawing" %>
<%@ import namespace="System.Drawing.Imaging" %>
<%@ import namespace="System.IO" %>
<%@Import Namespace="System.Uri" %>
<%@Import Namespace="System.Net" %>
<script runat="server">

Sub sendFile()

' create New image and bitmap objects. Load the image file and put
into a resized bitmap.
dim g as System.Drawing.Image =
System.Drawing.Image.FromFile(server.mappath(reque st("src")))

'use image as background

Dim img As Bitmap = _
New Bitmap(g.Width, _
g.Height, PixelFormat.Format24bppRgb)
Dim w As Graphics = Graphics.FromImage(img)
w.DrawImageUnscaled(g, 0, 0, g.Width, g.Height)
'write on image

w.TextRenderingHint = Text.TextRenderingHint.AntiAlias
Dim imgFont As Font = New Font("Tahoma", 18, FontStyle.Bold)
Dim imgBrush As SolidBrush = _
New SolidBrush(Color.FromArgb(128, Color.Red))
Dim centerFormat As New StringFormat()
centerFormat.Alignment = StringAlignment.Center
centerFormat.Trimming = StringTrimming.None
Dim buyNow As String = "-hello-"
w.DrawString(buyNow, imgFont, imgBrush, _
New RectangleF(0, 107, w.Width, w.Height - 107),centerFormat)

dim thisFormat=g.rawformat
dim imgOutput as New Bitmap(g)

' Set the contenttype
response.contenttype="image/jpeg"

' send the resized image to the viewer
imgOutput.save(response.outputstream, thisformat) ' output to the user

' tidy up
g.dispose()
imgOutput.dispose()

end sub

</script>
<%
response.clear
call sendFile()
response.end
%>
I call the page via http://xxx.xxx.xxx?src=yyy.jpg

and the error I get is:

BC30561: 'Text' is ambiguous, imported from the namespaces or types
'System.Drawing, System'.

Source Error:

Line 25: 'write on image
Line 26:
Line 27: w.TextRenderingHint = Text.TextRenderingHint.AntiAlias
Line 28: Dim imgFont As Font = New Font("Tahoma", 18, FontStyle.Bold)
Line 29: Dim imgBrush As SolidBrush = _


Many Thanks for any help or information.
Nov 18 '05 #3
Jason Hello,

The Interfax service will do what you require, since you can send it a
URL to render and transmit by fax. So you would simply create a .url
file which properly holds the URL you wish to fax, like:

[InternetShortcut]
URL=http://www.yourserverhere.com?any=variables&you=want

Interfax picks up the URL, opens the page and faxes whatever it sees
to your destination number.

You can test all this for free through our developer program at
http://www.interfax.net/en/dev/index.html .

Adam M
Interfax

ja***@cyberpine.com wrote in message news:<ef*************************@posting.google.c om>...
Hello.

This one is kinda out there.

I have asp.net code that will email my yahoo account a <img> like with
image on the server. When I open it in yahoo I get the full image on
screen. works great.

Any way to create an image (in asp.net on the server) of full web page
- text and all. Currently I have dynamic on top of that image and can
do a screen print and fax it. Some how i'd like to automate the
process where I could press a button on the page and automagically my
filled in image form with text and all is emailed to an email to fax
service that will fax it to phyically fax machine somewhere.

Currently i have code to email any image i pass a specific page via a
variable in the address header mypage.aspx?whatimage=xxx.gif

and .

I have an aspx page that plugs data on top an image form via
varialbles form.aspx?name=jason?addr=4040%2055

Is this a wild dream? If not, point me in the right direction.

A big question will also be if any email to fax service would ever
process anything but text emails. I get the feeling so far is going to
be NO anyways.

Thanks.

Nov 18 '05 #4

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

Similar topics

3
by: sentinel | last post by:
Hi, Wonder if anyone can help with this problem: I am using an app with several pages, using a session to track vars between the pages, and using an image map to re-direct back and forwards...
2
by: Tiro Orsa | last post by:
Hey all... GOAL: My end goal is to send a web page (single file) as an attachment (not embedded) via email to any of the main email clients (Eudora, Outlook, etc). Users see a single web page...
6
by: Greg Collins [InfoPath MVP] | last post by:
I couldn't find what I was looking for doing a search through the newsgroup, so here goes... I'm have a Web site user registration confirmation page that I want to show a set of random numbers...
2
by: Christopher Ambler | last post by:
I'm wondering if there's a solution here - I have an ASPX page with a sole purpose of scaling an image. The ASPX page contains a single line with the codebehind tag, and the .cs file contains...
4
by: Marc Pelletier | last post by:
Hello, I have a class (TideClass) which creates a bitmap image as one of its functions. I want to create a page which has this image embedded amongst some text. I know that I have to stream the...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
8
by: ridgedale | last post by:
I wonder if anyone could explain how I pass the field values in my request form to the PHP processor page. My external javascript file is as follows: var sections = ; for (var i=0; i <...
8
by: Cirene | last post by:
I have 1 master page in the root of my website that I would like to share with all pages, even those in my /admin and /client directories. But when pages in the subdir's are viewed the img, css,...
3
by: hsahealthsavings | last post by:
I made this page using a free html editor called formbreeze. The issue is 1) There is a whole bunch of white space at the end of the page that I cannot seem to figure how to get rid of 2) I have...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.