-
April 20th, 2013, 10:29 PM
#1
Ask code set printer for the report ?
Assuming the computer has installed 2 printer name: printer1, printer2 and in my program has 4 report name: ActiveReport1, ... ActiveReport4. Status to avoid crafted before viewing or printing in the printer before you have to choose, I can write code automatically select the printer before printing or print view, for example, when prints ActiveReport odd numbers will viewed or print on printer1 and ActiveReport even numbers when viewed in print or on printer2. for example code this.
-
April 21st, 2013, 12:14 PM
#2
Re: Ask code set printer for the report ?
Create ActiveReport1-Odd and ActiveReport1-Even reports
-
April 21st, 2013, 04:17 PM
#3
Re: Ask code set printer for the report ?
If you are using ActiveReports as would seem to be the case you Set the Printer property of the report to the printer you want to use.
Always use [code][/code] tags when posting code.
-
April 21st, 2013, 06:10 PM
#4
Re: Ask code set printer for the report ?
Probably not EVEN and ODD pages (without a Macro)
-
April 22nd, 2013, 09:46 AM
#5
Re: Ask code set printer for the report ?
That is not what I got from his post. He said that he had four reports 1-4 and wanted the odd numbers on one printer and the even numbers on the other printer. To me this means Report 1 and 3 get sent to printer 1 and report 2 and 4 get sent to printer 4. Printing even pages to one printer and odd pages to another would be a very strange way to go and I doubt that any report engine would support that.
It has been a while since I have done this with Active reports so I am not clear on the method at the moment but it either has a Printer property that you can set through code or it uses the VB printer object that is set at the time. In either case it is a simple matter to change it through code at run time.
Not sure where you think a Macro would come in as they do not exit in VB or active reports.
Always use [code][/code] tags when posting code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|