Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


question for SBennett in ref:http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=coldfusion&qid=20283750

Posted on 2002-04-04
Medium Priority
Last Modified: 2013-12-24
scott you helped me out with this question now I have one more thing to ask about it.

in the Print(), I have found that their are several attributes that can go in it such as copies and page range how do you incorporate those attributes within the code mentioned in the subject of this question.

ie I would like to specify via code how many pages that I would like to print before executing the code.

I had tried to pass a cf variable to the code but have had no success can you explain if possible?


Question by:jriver12
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
LVL 14

Expert Comment

by:Scott Bennett
ID: 6934655
Sorry jriver, I have been away for a few days. I'll look into this and get back to you. I think I know how to do it but I want to test it out first.
LVL 14

Expert Comment

by:Scott Bennett
ID: 6934942
well, I seem to be having a great deal of difficulty trying to add the optional attributes to the PrintOut() method.

unfortunaly,I've never tried to do use those attributes before so I'm not entirely sure if you can with coldfusion. A few of the attributes utilize some intrinsic constants wich are supplied by Microsoft Access, Visual Basic for Applications, Microsoft ActiveX Data Objects (ADO), or Microsoft Data Access Objects (DAO), but not coldfusion.

If anyone on EE know how to do this it is probalby Dain_Anderson but I haven't seen him around lately.

Author Comment

ID: 6935082
well I haven't seen it done with coldfusion, all literature that I have seen it has been used for macros using vb.  its ok.

I finally beleive that I have figured it out

the best thing to do was to alter the script of the previous mentioned and have it open the saved documet and print it since it was populated thru a mailmerge dynamicaly using a autoopen macro.  that did several things:

1 upon opening the doc it connected to the datasource
2. performed the merge creating another doc
3. saved the doc as mynewfile.doc
4. open the new doc. for viewing letting the user choose what and when to print, but can also use the same method and have it print the entire doc with the Printout().

all of this took a while but I got it to work. thanks for replying.
Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control


Author Comment

ID: 6935084
ps post something as a solution so I may reward you with these points for your time.
LVL 14

Accepted Solution

Scott Bennett earned 200 total points
ID: 6935143
I don't think it is possible to use the attributes to the PrintOut() method with ColdFusion, since it they are geared for use with Visual Basic. ColdFusion does have some limitations when dealing with these COM object and I believe this is one of them.

Author Comment

ID: 6935149
I agree.
some times you just have to try and get around bill's world. :)

thanks a mil.

Author Comment

ID: 6935152
just got an error from the server and it did not take me accepting your answer lets try again.

Author Comment

ID: 6935154
just got another, lets wait and see later.

Author Comment

ID: 6935697
thanks, again lets see if this works this time

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question