Solved

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

Posted on 2002-04-04
9
156 Views
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?


thanks

J.
0
Comment
Question by:jriver12
  • 6
  • 3
9 Comments
 
LVL 14

Expert Comment

by:SBennett
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.
0
 
LVL 14

Expert Comment

by:SBennett
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.
0
 

Author Comment

by:jriver12
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.
0
 

Author Comment

by:jriver12
ID: 6935084
ps post something as a solution so I may reward you with these points for your time.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 14

Accepted Solution

by:
SBennett earned 50 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.
0
 

Author Comment

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

thanks a mil.
0
 

Author Comment

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

Author Comment

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

Author Comment

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

Featured Post

Superior storage. Superior surveillance.

WD Purple drives are built for 24/7, always-on, high-definition security systems. With support for up to 8 hard drives and 32 cameras, WD Purple drives are optimized for surveillance.

Join & Write a Comment

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now