Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
14
Erster Beitrag:
vor 7 Jahren, 10 Monaten
Letzter Beitrag:
vor 3 Monaten, 1 Woche
Beteiligte Autoren:
Giovanni Carella, Arie, Fabrice Harari, Abdelillah ELFASSI, Joris, Al

Printing two A5 pages on one A4 page

Startbeitrag von Arie am 04.02.2010 13:28

Hi,
one of my clients want's to print an A5 report twice. One for the customer. One as internal copy.
He's already using special A4 paper for it, which has a tear perforation line in the middle.
It's also necessary to print the reports page1+page2, page2+page2 and so on, instead of 1,2,3 and again 1,2,3. So every A4 has an original and a copy of the SAME page.

How can I do this? Not sure if it is really a WD question or a printer setting question.
But at least I have to save and use these printer settings as predefined in my application. The users just want to print with a single click.


Antworten:

Hi Arie,

Maybe you can use FinePrint for this.
There is a free trial download on www.fineprint.com

regards,
Joris.

von Joris - am 04.02.2010 15:41
Hi Arie...

IF the printer used has the necessary options, it can be done by just setting it correctly...

- print twice
- print 1-1 2-2 3-3
- Multiple sheets/pages: number 2, side by side
- orientation landscape

and that's it

Now if any of these options is missing, that's another story entirely.

Best regards



von Fabrice Harari - am 04.02.2010 18:08
Fabrice,
That is an answer I like. In fact I dont have to do anything.

But I want these settings predefined in the settings-window of my program. So the supervisor can setup a dedicated invoice printer. And then the user is able to print with a minimal number of mouseclicks.

I see a number of contants for use in iParameter() for the settings you mentioned.
Except for "multi page". How to get/set this one?
I tried reading iExtraParameters but then I get a array of bytes. Looks like an api32 structure. Do you know something about it?



von Arie - am 04.02.2010 21:52
Hello Arie

Another solution is just to deliver to the report what it needs, two consecutive copies of the data. Set the page length to A5 and send two sets of page 1, 2 sets of page 2 etc. We do this in a couple of reports and the simplest is to run it from a memzone where you set the same key up twice or build the data into a table in duplicated form. In this way it will print corretcly regardless of the printer, as all printers may not support the multiple page formatting options.

Regards
Al

von Al - am 04.02.2010 22:13
Hi Arie,

I know that one solution is to query the printer as to its current settings (after setting it manually correctly once, of course), then record that information and send it back to the printer when needed...

I did that in an application a few years back, but I must say that I have forgotten more about the process than I can remember :-( I don't even remember in which app I did that, in fact...

I hope this gives you enough of a hint or that somebody else has that information on hand

Best regards



von Fabrice Harari - am 04.02.2010 22:45
Hi Arie

you may want to have a look there:
http://depot.pcsoft.fr/resource.awp?file_id=14;memorisation-des-configurations-imprimante&lang=FR

I know it's in french, but google translate should be your friend here, as this seems to be exactly what you are looking for (getting the parameter and saving them)

best regards



von Fabrice Harari - am 09.02.2010 14:28

Re: Printing two A5 pages on one A4 page - thanks

Thanks Fabrice,
this could do the job indeed.

von Arie - am 09.02.2010 14:57
Hi.....
i have the same problem but i can not find the right settings....

von Giovanni Carella - am 30.08.2017 18:05
For test i have tried to set the "Page to Print" of print preview to 1,1,2,2 and i have set the multiple page in 2 in 1 but the printout is a A4 with page1+page2.

If I do the same thing in Acrobat Reade with the exported pdf of my report work fine and the print out is a A4 with page1+page1 and and another A4 with page2+page2, just as I would like it

von Giovanni Carella - am 31.08.2017 16:05
Giovanni,

my initial post is form a long time ago and the project is not active anymore. So I can only give you some tips, I can't check printersetttings and so on at the clients side.

In my case I had to print labels, where each label was just one (product/article) record. What II did was just creating one A4 report layout, with all controls duplicated. In fact the report did not have a detail-secion, everything was in the header. Resulting in a regular A4 printout, just as any other A4 prints.

You are talking about invoices, which means multiple lines? That makes it more complicated.

Maybe you can switch to printing labels and choose a paper/label format with 2 labels side by side?
Or try using a internal report. Maybe you need 2 internal reports, being exactly the same. And use both on one A4. I'm not sure if it is allowed to use the same internal-report more than once on a printlayout.

Hope this helps.

von Arie - am 31.08.2017 16:19
Hi Arie,
yes, my report is an invoice in A5.

The strange is why in Acrobat reader work and in a print preview not...

von Giovanni Carella - am 31.08.2017 16:40
Hi Arie,

I have had the same situation and I duplicated the report on A4 page.

Regards

von Abdelillah ELFASSI - am 31.08.2017 17:22
So... i think the problem is the parameter "Page To Print".

If i set this parameter in Acrobat Reader or Word to "1,1,2,2" the printout is two page1 and two page2.

If i set this parameter on Print Preview of my project to "1,1,2,2" the printout is one page1 and one page2.

von Giovanni Carella - am 01.09.2017 07:26
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.