Is it possible to combine two PrintDocuments or...

  • Thread starter Thread starter trint
  • Start date Start date
Trint,

A couple of other notes.

First, you do realize that you don't need the static variable Class1.pd
in order to get your hands on the paper sources for the printer from
within pd_PrintPage. You can get that this through the
PrintPageEventArgs, like this:

ev.PageSettings.PaperSource =
ev.PageSettings.PrinterSettings.PaperSources[...];

Second, I just want to clarify my previous note about the combo box. I
understand what you're trying to do in selecting different paper
sources (I think that you see that it's working, just not the way that
you want). I just don't understand why you're involving a combo box. It
looks to me as though

ev.PageSettings.PaperSource =
ev.PageSettings.PrinterSettings.PaperSources[comboBox1.SelectedIndex =
4];

is exactly the same as

ev.PageSettings.PaperSource =
ev.PageSettings.PrinterSettings.PaperSources[4];

I don't understand why you're involving the combo box at all. I think
that I need to know what was the business requirement behind the combo
box thing... what was the original idea that led you to use a combo box.
 
Ok,
It is working...is exactly as you have said...thank you. But, it is
printing in this order for some reason??:
tray 4
tray 2
tray 3
You were also right about the indexing number of the devices...I got
that from the explanation MS gave on papersourcekind...they said that I
have to do a retrieve of the devices index first...
Anyway...
the second report:
These reports I did like Crystal Reports, but with MS SQL Server 2000
Reporting Services.
they are located in those paths...the real names of the reports are
Report1.rdl (the one with the prices) and Report2.rdl (the one without
the prices).
I haven't figured out how to render the Report2.rdl yet anyway...I
mean, I can create a second PrintReport function that will render the
2nd report, but now that we have this, I don't know...at least we are
pull from three separate trays now...
Good question...How can I render the second report before
PrintPageEventArgs release to print the job?
Another thing, you probably already know...this rendering Must be done
as an enhanced meta-file or "emf" since MS says, that is the only
format that rs.render can determine how many pages a report is. You
have no idea how you are helping me.
You are a Good Programmer.
Thanks for your help.
Trint
 
You mean more than one document? Patience. One thing at a time. Let's
get the multiple copies working first. :)

Trint... I'm thinking that we should take this conversation out of the
newsgroup and into e-mail. It would be quicker and wouldn't annoy all
of these other people with our chatting back and forth about your
specific problem.

Any objections?
 
That is great, my email is:

(e-mail address removed)

The construction guys are making all of IT leave until in the
morning...
Before I go out the door, do you think it is possible to (without me
jumping ahead) render the second report and add it to the printjob as
the same document?
How do you know these undocumentd features anyway?
Thanks,
Trint
 
The second report? You mean another invoice number, or the third copy
without prices?

If you want to finish up one thing today before you go, let's get the
e-mail conversation started. I'll send you an e-mail right now. If you
get it, you can reply and we can carry on the conversation that way.
Much better, I think.
 
Back
Top