Thanks, Charlie (and Steven). 

First may I say that you need not apologize for telling me what may be obvious 
to most others; while I was a skilled ColdFusion programmer five years ago 
(version 5), even then I knew very little about the wider computer world CF 
lived in - I was only good at writing code. 

Since the printer attribute of <cfprint> was optional, I just assumed it would 
default to LPT1, and all the users of this web app on the network where it will 
reside have a printer beside them, to which a DOS command like COPY 
MYFILENAME.TXT LPT1 always sends the named file to.

Following Steven's advice, I nevertheless tried to include the printer name, 
namely printer="HP Officejet 4300 series" (the name which appears in the Win XP 
"Printers and Faxes" dialog), complete with spaces, though I was skeptical 
whether it would work (would I discover I have to escape the spaces with %20? 
and surely its 'real' name would be some arcane network name like 
"\s1001prn02\NTN-2W-HP_BW02"? - that's the printer name used in the livedocs 
example). But it DID work. And I find that even more surprising in light of 
your comment that <cfprint> is for printing to the server's default printer: 
I'm developing this app working localhost, not on the client's site, so the 
server's default printer ought to be the one with a check beside it in the 
Printers and Faxes dialog, right? (Namely the one named "HP Officejet 4300 
series")

Clearly, if I must specify the printer name, I'd have to have a way to get that 
for each user, since the client wants remote users to be able to print the 
report as well. Is there a way to find that out?

These are things I'd like to know for my greater understanding. 

However, I like my current solution better than <cfprint>, which seems to take 
a very long time. Currently I'm simply building the PDF with <cfdocument>, 
loading it to a child window of the browser, and letting the user print it from 
there using the Print dialog provided by Acrobat's in-browser plug-in. 
Impressionistically, this seems a lot faster, and in any case it has the 
advantage of showing the user a halfway point after the <cfdocument> phase of 
the process.

But an even better way would be simply to pop up the Acrobat Print dialog 
directly, already loaded with the PDF built by <cfdocument>, based simply on 
the user's pressing a button in the web page, and without the intermediary of 
opening the PDF in a child window where the user has to click a Print button 
(icon in this case) again. Do you know any way to do that?

Thanks again,

Peyton

-----Original Message-----
>From: Charlie Arehart <[EMAIL PROTECTED]>
>Sent: Apr 14, 2008 4:57 PM
>To: [email protected]
>Subject: RE: [ACFUG Discuss] <cfprint> or some other way?
>
>Peyton, where are you expecting the reports to be printed? You do realize that 
>it's for printing to a printer connected to the server, right, and not the 
>client? Sorry if that's obvious and you knew it. Just like checking first that 
>an appliance is plugged in when trying to resolve a problem with it, this 
>seemed an important first question.
>
>So the next thing is that without naming a printer, it will go to the default 
>printer for the server. Do you know what that is? If you go to the server and 
>look at the list of printers, it will tell you. Are you checking for output 
>there? You may see 0 documents in the queue if it prints quickly. That's just 
>a guess.
>
>/charlie
>
>
>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peyton Todd
>Sent: Monday, April 14, 2008 2:26 PM
>To: [email protected]
>Subject: [ACFUG Discuss] <cfprint> or some other way?
>
>I need to provide a reporting capability for the website I'm writing. My first 
>attempt has been to write a PDF using <cfdocument>, then print it with 
><cfprint>. The first step was successful, and the document so produced can be 
>loaded to a web page and printed successfuly from there, but the invocation of 
>the <cfprint> tag produces no output - and no error message - even though the 
>Print Log in the administrator lists all the attempted documents. It is true 
>that it does not list them as 'Printed' but only as 'Started'. But where are 
>they? All the entries in the Win XP Printers and Faxes window show 0 reports 
>in the queue...
>
>I'm exploring other options, including loading the PDF to another window and 
>letting the user print from there using the print button provided by Adobe in 
>that window. But what could be the problem with my use of <cfprint>? I'm 
>invoking it with the bare minimum of parameters, i.e., as <cfprint 
>filename="MyReport.pdf" type="PDF" overwrite="yes">.
>
>Thanks for your suggestions. 
>
>Peyton
>
>
>-------------------------------------------------------------
>Annual Sponsor FigLeaf Software - http://www.figleaf.com
>
>To unsubscribe from this list, manage your profile @ 
>http://www.acfug.org?fa=login.edituserform
>
>For more info, see http://www.acfug.org/mailinglists
>Archive @ http://www.mail-archive.com/discussion%40acfug.org/
>List hosted by http://www.fusionlink.com
>-------------------------------------------------------------
>
>
>
>
>
>
>-------------------------------------------------------------
>Annual Sponsor FigLeaf Software - http://www.figleaf.com
>
>To unsubscribe from this list, manage your profile @
>http://www.acfug.org?fa=login.edituserform
>
>For more info, see http://www.acfug.org/mailinglists
>Archive @ http://www.mail-archive.com/discussion%40acfug.org/
>List hosted by http://www.fusionlink.com
>-------------------------------------------------------------
>
>
>



-------------------------------------------------------------
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------



Reply via email to