Embedding An AxtiveX That Prints On The Local Printer.

Is it possible to write in VB6 an activeX that will receive a RecordSet and
display a data report and then print it on a local/network printer?

View Replies


ADVERTISEMENT

Windows.print(), Prints Extra Info

I'm using the windows.print() function to print a customers receipts from an ASP. I've created a button to do it, like this .

<td align=left>
<BUTTON TYPE=BUTTON
onClick="window.print()">&nbsp&nbspPRINT&nbsp&nbsp</BUTTON>
</td>

Unfortunately I get some additional lines printed that I don't want. The line says ...http://localhost/pos_system/tran_sales.asp across the bottom of the receipt. Obviously its my ASP name but how can I remove it ?

View Replies View Related

Embedding Html In Asp

I have an asp page where I am generating an email but I need to have a link in the email body. Here is my code, I cannot get anything to work. I keep getting missing end of statement. Code:

<%
TheText2 = TheText2 & "HalCAP Request Number = " & rsOID("oid") & Chr(13)&Chr(10) & Comments
TheText2 = TheText2 & "<html><body><a href=""admin_31.asp?reqid=<%=quoteoid%>"">View Request</a></body></html>"
%>

View Replies View Related

Embedding HTML

if I have a block of HTML which I can insert into a file, I know there a PHP way of doing it just don't know the VB way to do it, anyone come accross this?

View Replies View Related

Embedding Images In E-mail?

I need to create HTML e-mail from an ASP program that includes embedded
images that go along with the e-mail, e.g. logos, product image, etc. Is
there a technique in HTML that people use to embed images? I know that when
I insert an image into an e-mail in Outlook, and I look at the HTML behind
it, there is a funny tak CID:

IMG hspace=0 src="cid:027301c29d8e$da6ba600$0afea8c0@MYMAIN" align=baseline
border=0>

Any clues?

View Replies View Related

Embedding XML Data In An ASP Page

I'd like to display XML data in a table in an ASP page. Seems like XSL and XML don't like that because ASP commands within the document cause the page to not be "well-formed"...

anybody know how to do what I want to do? Point me to a good online tutorial...i'll be looking too in the meantime.

View Replies View Related

Embedding Images In Emails

I'm not sure if this is the correct forum to ask this question, but I'm creating the email in ASP so I'm sure it will do...

How do you embed images into emails? I've created HTML emails that lookup images on a server when viewed but I'm trying to write a script where an image is sent with the email as the image isn't available online (only on the intranet).

View Replies View Related

Problems With GetObject When Embedding Vbs In An HTML Page

I have a vbs script that retrives some stuff from AD via LDAP. Works great, and does exactly what I want it to go. The 'guts' of the app is Code:

Set objOU = GetObject (strOU)

Where strOU is something like "LDAP://OU=Users,OU=OT...." etc. Like I say this works fine and generates a nice report.

However I have to (I don't know why, but it's an insist) that this script has to be an html page. A stand alone one at that (ie to be run form a users workstation).

I rewrote the code to output to the html page, emebeded it in <script language="VBscript"> etc but the GetObject bit isn't working. I get :

Code:

View Replies View Related

Embedding Images And Dynamic Content In An Email, Programmatically

In my code to send email from VBScript, I use standard CDOSYS code similar to
the following:

With oMsg
Set .Configuration = oCon
.To = """Admin"" <admin@mycompany.com>"
.From = """Joe Admin"" <jadmin@mycompany.com>"
.Subject = "Hey You!"
.TextBody = "Service(s) have failed!"
.Send
End With

I understand the use of the .HTMLBody property, as well as the
..CreateMHTMLBody method. So I know I can create an ASP or HTML page, and
pass it to the .CreateMHTMLBody method, to get the images truly embedded, so
the email source contains the cid:blahblahblah references to the images,
which is key to getting the email to display properly in web-based mail
clients.

My question is... how do I achieve the same thing (embed the images) that
the .CreateMHTMLBody method does automatically, manually, so I can also
inject values passed from a form postback into the email?

It seems that I shouldn't use the .CreateMHTMLBody method. It seems that I
need to manually accomplish what it accomplishes automatically, so I have
more granular control. But I have found no thorough online resources that
explain exactly how. I have thoroughly looked at all of the SDK information
pertaining to CDOSYS, and I am still in dire need of an example for
VBScript...

It seems that the .AddRelatedBodyPart method is part of the answer, but when
I use it to embed the images and fill .HTMLBody, rather than using the
..CreateMHTMLBody method, I do not see cid:blahblahblah in the email source,
and the images do not display properly in web-based mail clients such as
Outlook Web Access.

I really need some help on this. It would also appear that I am not alone.
I find plenty of questions on this, but no answers. Can anyone help with a
working VBScript example that embeds images into an email in a fashion that
yields the cid:blahblahblah in the email source, for the image references,
that does not use the .CreateMHTMLBody method to do the work automatically?

View Replies View Related

"HTTP/1.1 100 Continue" Text Prints At Top Of Pg

I've a page that generates a map and while processing, I display an animated gif status bar.

However, at the same time, the text "HTTP/1.1 100 Continue" is also displayed below the status bar. When the generated map returns, this same text is displayed at the top of the page (on a line by itself).

Researching this text mentions this behavior breifly, but doesn't offer much in the way of surpressing it. Questions: What causes it and how can I surpress it?

View Replies View Related

IE Printer

In my WEB application (developped in ASP), i would like to be able to print
a report with data extracted from DB.

I would like to have a button that when i click on it, i launch action like
IE - > FILE -> print.

how can i do this ?
I think that one way is to use activex but i would like to be able to not
use activex too.

View Replies View Related

Printer Friendly

Just looking for an affective and easy to use free 'Printer Friendly' script for an Intranet.

View Replies View Related

Printer Setup

Is there code that I can write that will change the user's printer setup so that my web page will always print out on one page. I would like the output of the page to look the same no matter who is printing the page. How do I do this?

View Replies View Related

Printer Orientation

I wanted to set one of printer friendly pages to landscape, where the user do not need to set it manually.... I tried adding this code to my page, but it doesn't seem to work:

<style type="text/css">
@page { size:landscape; }

</style>

View Replies View Related

Printer Friendly

I have an asp application that generate reports. The reports are a list of tables that contain information about users. each user has his own table. how do I get the tables to be printer friendly using either css or a script.And how do I page break the tables.

View Replies View Related

Printer Command

In Vb6 i use Printer.print command with coordinated printing... Is there any
way to use it also in ASP or how.

if creating server.createobject("param") what will be the param.

View Replies View Related

Buffer To Printer

Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objTemplateFile = objFSO.OpenTextFile(Server.MapPath("template.txt"))

strTemplateText = objTemplateFile.ReadAll
objTemplateFile.Close
Set objTemplateFile = Nothing

strTextToPrint = strTemplateText
strTextToPrint = Replace(strTextToPrint, "{date}", Date())
strTextToPrint = Replace(strTextToPrint, "{time}", Time())
strTextToPrint = Replace(strTextToPrint, "{message}", strMessage)
Response.Write strtexttoprint

How do I send strTextToPrint to my default printer?

View Replies View Related

Communication With The Printer

i need a asp coding to communicate with the printer.here i need to get printouts of the selected data from the system .inside my interface i give the printer port in the network,printer path and the username password,after checking these things it specify the print job .

View Replies View Related

Output Printer

i m giving link print this article to my users to print the page.

Code:

<A HREF="javascript:window.print()">Print this article</A>

but it is printing whole window but i want to print only news part. i want to make the printed output "printer friendly". means stripped off the left and right side crap. And the banner ad at the top.

View Replies View Related

Pause Printer

I am printing a payslip contains nearly 22 lines. Each time i am generating one employee payslip. If i print using window.print() prints the payslip and aligns to next page. I want to stop the printer and go back and generate next emp payslip. so that i can save paper.

How can i do this. I can generate 3 payslips but there are many calculations for each emp. so i want to generate one by one.

View Replies View Related

Printer Dialogue Box

I have print icon on a page and when clicked it goes to a page which is the same but without any buttons etc that do not need to be printed.

The client now wants that instead of clicking file print etc that the printer dialogue box pops up automatically.

View Replies View Related

Duplex Printer

Anyone had any fun with setting page breaks with a duplex printer? Example, you have one document with several sections each with a different number of pages.

But you always want each section to start on the front side of the paper not on the back of the last page of the previous section. I have seen information on setting left/right but I have not been able to get it to work.

View Replies View Related

Printing To The Host Printer ??

I am writing a website in asp for a take out restaurant. Customers can place order from their website. What I want to do is, print out the order form from the restaurant's printer when an order is placed, so none is required to manually print out the order list. Is it possible and how??

View Replies View Related

Printer Friendly Form

I have developed a client based form using vbscript for a web page to run on IE and would like to make this form printer friendly. Anyone have some ideas?

View Replies View Related

Printing From ASP To Network Printer

I have 2 questions :

1. - I want to print from my ASP page directly to my network printer. For this i use the following code, but everytime, my document to print is sent to local and physical port LPT1 not to network printer : Code:

View Replies View Related

Page Breaks To Printer

I am creating some reports with ASP and have come to a bit of a problem. Does anyone know how can I send a page break to the printer? I need to be able to start different items fresh on a new page and I really have no idea how to do it.

View Replies View Related

Printer Friendly Page

Just want to ask if anyone here has experience with doing printer friendly page. I have done a printer friendly page but the problem is if the line overflow, the printer friendly page will 'run' because my code count line by line, but by charactar or pixel.

View Replies View Related

Printer Friendly Pages

my data all can display.but when link it 2 printer friendly pages no data display

View Replies View Related

Printer Friendly Code

Is there a way to get a printer friendly page using ASP. And when I say this I do not mean removing banner, picture etc and print the page.

The problem I face is, an ASP output is a big table with say 10-15 columns and it would not print even in landscape mode. So if I print the output from the IE browser the right side of the table gets cut. I want to know if there is an ASP code to over come this problem.

View Replies View Related

To Send The Resultset To Printer

I want to send the whole resultset i retrieved. now i am retrieving the resultset and able to print 15 records in one frame. if i want to print whole the dump records what i have to do.?

View Replies View Related

Printer Connection From ASP Page

I'm using an ASP page to display all our office printers, I want the users to have to possibility to install the network printer with just one click on the page. Is this possible. ?? PS all information is retrieved from SQLServer.

View Replies View Related

Printing To A Network Printer

I have a string of text that needs to be sent verbatim to a printer. The text string is generated via ASP. I can't simply print from a client mahcine on our intranet through internet explorer to the printer as the IE headers and other formatting gunk cause problems. I want to set it up to print the data server-side to the printer.

That avoids people trying to send the data to the wrong printer, etc. Of course, the printer in question is a shared printer connected to a machine in a different office (It's a tag printer, is very loud, and is essentially being put somewhere where we won't have to listen to it).

I can't find a way to get this setup to work. Does anyone have any ideas?

View Replies View Related

Locate Printer In Server

I try to use ASP call to call a batch file and print report to the server's printer. But error message displayed to point out that ASP cannot locate printer in Server.How to do?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved