community.spiceworks.com Open in urlscan Pro
45.60.13.212  Public Scan

URL: https://community.spiceworks.com/topic/2429772-printing-a-page-twice-from-different-tray-s
Submission: On May 23 via manual from IN — Scanned from DE

Form analysis 1 forms found in the DOM

<form>
  <i class="1684853685513 mag-glass"></i>
  <input class="1684853685513 search-input" autocomplete="off" placeholder="Search Spiceworks">
  <i class="clean-icon"></i>
  <div class="1684853685513 trending-topics"></div>
  <div class="1684853685513 search-box-results"></div>
</form>

Text Content

Home
 * News & Insights
   * News & Insights Home
   * Innovation
   * IT Careers & Skills
   * Cloud
   * Cyber Security
   * Future of Work
   * All Categories
   * Marketing
   * HR
   * Finance
 * Community
   * Ask question
   * Community Home
   * Spiceworks Originals
   * Cloud
   * Collaboration
   * Networking
   * Water Cooler
   * Windows
   * All forums
   * How-Tos
   * Scripts
   * Vendors
   * Meetups
 * Reviews
 * Online Events


Login Join
Login Join


 * Home
 * Collaboration
 * Team Collaboration


PRINTING A PAGE TWICE FROM DIFFERENT TRAY’S

Posted by spicehead-9agt3 on Jun 18th, 2007 at 12:58 PM
Team Collaboration
Hello, oke. Now I have a question. :-) A customer of mine wants to print the
same job on 2 kinds of paper (so, from 2 different trays) and they should all
collect in one pile. So on the pile is: Page1(White), Page1(Red), Page2(White),
Page2(Red), Page3(White), Page3(Red)..... and so on. How would I do this?
Friendly greetings Rens Duijsens
Spice (1) Reply (14)
flagReport
spicehead-9agt3
pimiento

POPULAR TOPICS IN TEAM COLLABORATION

Chat app with retention What are some tips for equipping hybrid/remote teams?
Prerequisite to moving a domino server on new hardware Is your org planning a
conference room refresh for the new normal? ... Ciscocollab host entry point not
found (one laptop only) View all topics



14 REPLIES

 * previous_toolbox_user
   pimiento
   Jun 18th, 2007 at 1:06 PM
   I would suggest :
   
   $tray = "Tray1";
   //call pageout with white paper
   Callproc(outputpage);
   $tray = "Tray2";
   //call same pageout again with red paper
   Callproc(outputpage);
   
   $tray would be the variable in your platform folder under your printers.
   
   Regards,
   
   
   flagReport
   Was this post helpful? thumb_up thumb_down
 * OP spicehead-9agt3
   pimiento
   Jun 18th, 2007 at 8:58 PM
   Hi Sam,
   
   thank you for your reply.
   
   That would be real easy if that would work, wouldn't it? :-)
   Than I would have solved my problem without having to think. :-D
   But no..... that is not going to happen.
   
   If I do a CallProc("outputpage") than the WHOLE process will run.
   Lets assume, the process produces 2 pages. (So, a FrameOverflow occurs
   during the process.)
   So, Page 1 would come out on white paper, and page 2 would be on white
   paper allso.
   Than, we switch to red paper and do the CallProc("outputpage") again.
   And page 1 comes out on red paper, and page 2 comes out on red
   paper......
   So the stack is: Page 1 (White), Page 2 (White), Page 1 (Red), Page 2
   (Red).
   
   Nope... Wrong!
   It should be: Page 1 (White), page 1 (Red) and THAN page 2 (White), Page
   2 (Red).
   
   How are we going to do that?
   Now I am forced to think. :-D
   It is solvable, but I am looking for the most simple way.
   
   Friendly greetings
   Rens
   
   ________________________________
   
   Van: Samvdb via streamserve-l
   [mailto:streamserve-l@Groups.ITtoolbox.com]
   Verzonden: ma 18-6-2007 15:01
   Aan: Rens Duijsens
   Onderwerp: RE: [streamserve-l] Printing a page twice from different
   tray's
   
   
   
   
   
   I would suggest :
   
   $tray = "Tray1";
   //call pageout with white paper
   Callproc(outputpage);
   $tray = "Tray2";
   //call same pageout again with red paper
   Callproc(outputpage);
   
   $tray would be the variable in your platform folder under your printers.
   
   Regards,
   
   
   flagReport
   Was this post helpful? thumb_up thumb_down
 * previous_toolbox_user
   pimiento
   Jun 19th, 2007 at 6:12 AM
   Hmmm... I knew when you ask a question, that it wouldn't be that simple
   :))
   
   I don't really have an answer then. But I would try to split them up in
   2 Pageouts instead of one. Then you can call 2 different Pageouts, and
   set your tray accordingly. But this would probably be a lot of work I
   guess,
   
   Regards,
   
   
   flagReport
   Was this post helpful? thumb_up thumb_down
 * OP spicehead-9agt3
   pimiento
   Jun 19th, 2007 at 7:41 AM
   Hi again.
   
   Yes..... One process per page.... That could maybe be a solution.....
   But I do not know in advance how much data I'm going to receive. How
   many blocks of the same type.
   When I call the first process to build the first page, how do I know
   that it will fit on this one page and not overflow?
   And how would I know to pickup at which part of the datastream to start
   the second process/page?
   StreamServe PageOut does not have an option 'ignore frameoverflow' so
   everything stays on one page....
   
   Like I sayed, I have a solution in mind, but it is rather complex
   (hey.... it's me...) and I'd like to invesigate ideas of other people to
   come to a simpeler solution if possible.
   
   So.... all .... please think with me.
   How would this be accompliced?
   I need the brainpower of list. :-)
   Lets make this a brainstrorm session!
   
   friendly greetings
   
   Rens
   
   ________________________________
   
   Van: Samvdb via streamserve-l
   [mailto:streamserve-l@Groups.ITtoolbox.com]
   Verzonden: di 19-6-2007 8:05
   Aan: Rens Duijsens
   Onderwerp: RE: [streamserve-l] Printing a page twice from different
   tray's
   
   
   
   
   
   Hmmm... I knew when you ask a question, that it wouldn't be that simple
   :))
   
   I don't really have an answer then. But I would try to split them up in
   2 Pageouts instead of one. Then you can call 2 different Pageouts, and
   set your tray accordingly. But this would probably be a lot of work I
   guess,
   
   Regards,
   
   
   flagReport
   Was this post helpful? thumb_up thumb_down
 * previous_toolbox_user
   pimiento
   Jun 19th, 2007 at 7:56 AM
   Hi,
   
   Im a newbie on Streamserve but couldn't you use Sorting on the Output
   Connector?
   
   Regards,
   Anders
   
   
   flagReport
   Was this post helpful? thumb_up thumb_down
 * OP spicehead-9agt3
   pimiento
   Jun 19th, 2007 at 9:17 AM
   Hello Anders,
   
   thanks for you input.
   I thought of that to, but no......
   
   With sorting, one can create piles of the same.
   Than, you can print the pile one after an other.
   The problem is, I need to alternate trays and repeat the last page.
   
   I need to select a paper tray, print one page.
   Select an other papertray and print the SAME page again.
   
   So, the challenge comes in 2 parts.
   
   1.
   Repeat the page I have just handled.
   There is no 'CallPage()' command.
   In the platform I could use 'copies' with a variable.
   If you enter a number in that variable, StreamServe sends one page to
   the printer, and than THE PRINTER makes the copies.
   In this way I could repeat one page as often as I like.
   Than it sends the second page and does the same, than the next page and
   so on.
   But that does not allow me to solve the second problem.
   
   2.
   Switch papertray in-between.
   One can set the paper tray selection on various places.
   For instance at the start of the job, or start of the message, or start
   of the process, or ... at the start of the page.
   So I can select a tray per page.
   But that does not allow me to solve the first problem, repeat output
   PER PAGE.
   There is no 'CallPage()' command. (Yet... Until I create it. :-)
   
   So I do not see the solution in sorting.
   But keep thinking with me please. You are helping.
   Every idea is valuable.
   
   Rens
   
   
   ________________________________
   
   Van: anders_eklund via streamserve-l
   [mailto:streamserve-l@Groups.ITtoolbox.com]
   Verzonden: di 19-6-2007 9:35
   Aan: Rens Duijsens
   Onderwerp: RE: [streamserve-l] Printing a page twice from different
   tray's
   
   
   
   
   
   Hi,
   
   Im a newbie on Streamserve but couldn't you use Sorting on the Output
   Connector?
   
   Regards,
   Anders
   
   
   flagReport
   Was this post helpful? thumb_up thumb_down
 * previous_toolbox_user
   pimiento
   Jun 19th, 2007 at 9:52 AM
   Hi Rens,
   Not sure for this problem but maybe FlushOutput() can do the trick here.
   Good luck, Erik
   
   
   
   flagReport
   Was this post helpful? thumb_up thumb_down
 * previous_toolbox_user
   pimiento
   Jun 19th, 2007 at 9:56 AM
   Hi Rens,
   This is tricky. I belive that Sam is right... I think his solution is the
   only possible. Call one page with one tray setting and then call it again
   with another tray setting.
   Your job should be to organize the input so that one page is one process.
   This can be done by sending the input to file. May be you can send the
   document to a pdf file and then resend it via pdf in? I have not tested it,
   but i think you can set the filters so that you handle each page as a
   process. Or why not use the emf printer and create one large lxf and
   reprocess it...
   No solution though, but some thoughts of how to solve this.
   Good luck!
   andreas
   
   
   
   flagReport
   Was this post helpful? thumb_up thumb_down
 * previous_toolbox_user
   pimiento
   Jun 19th, 2007 at 9:56 AM
   Hello,
   
   You can try this
   
   Create a binary (only namesakes with streamserve!!) variable with say
   values "red" and "white".
   Create a dummy free block(which does not display anything).
   Call this block in the before overflow action and change the color from
   "red" to "white" or vice versa.
   
   Use this variable as your tray correspondent variable.
   
   This should work when you are going to a next page from a frame
   overflow.
   
   Regards,
   Vishal
   
   flagReport
   Was this post helpful? thumb_up thumb_down
 * previous_toolbox_user
   pimiento
   Jun 19th, 2007 at 10:02 AM
   I have another idea, but It's complicated :)
   
   What you could do is use the copies variable to have page 1 twice, and
   page 2 twice, page 3 twice, etc, but don't print these files, send them
   to a "text file" folder in your platform folder and give them a name
   with % variable. So then you will have some files in the folder (ex.
   Page1A.grb, Page1B.grb, Page2A.grb, Pae2B.grb).
   
   Now that these files are made, but not printed yet, you can collect
   them, and send them to the actual printer.
   
   I would start with the same script before :
   
   $copies = 2;
   //send to the file folder
   Callproc(allpages);
   //pages are made, so now collect them
   Callproc(sendpages_from_folder_to_output_printer);
   
   In the " sendpages_from_folder_to_output_printer" Pageout the script
   could be something like this (pseudocode):
   
   Takepagesfromfolder;
   While
   {
   Send pages to printer;
   }
   //now that everything has been send, delete the content of the folder
   deleteContentFolder();
   
   
   Would this work , or is this to complicated ? Have never tried this
   though,
   
   Regards,
   
   
   flagReport
   Was this post helpful? thumb_up thumb_down
 * 
 * previous_toolbox_user
   pimiento
   Jun 19th, 2007 at 10:23 AM
   Have you thought about creating 2 output connectors and selecting different
   tray options for each one.
   
   Rob
   
   
   
   ----- Original Message ----
   From: Rens Duijsens via streamserve-l
   To: rob_v_williams
   Sent: Tuesday, 19 June, 2007 9:57:35 AM
   Subject: RE: [streamserve-l] Printing a page twice from different tray's
   
   
   
   
   Hello Anders,
   
   thanks for you input.
   I thought of that to, but no......
   
   With sorting, one can create piles of the same.
   Than, you can print the pile one after an other.
   The problem is, I need to alternate trays and repeat the last page.
   
   I need to select a paper tray, print one page.
   Select an other papertray and print the SAME page again.
   
   So, the challenge comes in 2 parts.
   
   1.
   Repeat the page I have just handled.
   There is no 'CallPage()' command.
   In the platform I could use 'copies' with a variable.
   If you enter a number in that variable, StreamServe sends one page to
   the printer, and than THE PRINTER makes the copies.
   In this way I could repeat one page as often as I like.
   Than it sends the second page and does the same, than the next page and
   so on.
   But that does not allow me to solve the second problem.
   
   2.
   Switch papertray in-between.
   One can set the paper tray selection on various places.
   For instance at the start of the job, or start of the message, or start
   of the process, or ... at the start of the page.
   So I can select a tray per page.
   But that does not allow me to solve the first problem, repeat output
   PER PAGE.
   There is no 'CallPage()' command. (Yet... Until I create it. :-)
   
   So I do not see the solution in sorting.
   But keep thinking with me please. You are helping.
   Every idea is valuable.
   
   Rens
   
   
   ________________________________
   
   Van: anders_eklund via streamserve-l
   [mailto:streamserve-l@Groups.ITtoolbox.com]
   Verzonden: di 19-6-2007 9:35
   Aan: Rens Duijsens
   Onderwerp: RE: [streamserve-l] Printing a page twice from different
   tray's
   
   
   
   
   
   Hi,
   
   Im a newbie on Streamserve but couldn't you use Sorting on the Output
   Connector?
   
   Regards,
   Anders
   
   
   flagReport
   Was this post helpful? thumb_up thumb_down
 * OP spicehead-9agt3
   pimiento
   Jun 19th, 2007 at 12:08 PM
   Yeah!
   The StreamServe community comes alive!
   Great. I like it. :-)
   
   Thanks for the ideas you all.
   I'll handle them one by one in the reply.
   
   ________________________________
   
   ---- Erik -------
   Not sure for this problem but maybe FlushOutput() can do the trick
   here.
   -----------------
   I'm not shure how you would make this work.
   This function, as far as I can tell, just sends output to the printer
   before it has been completed.
   In this way you can send small bursts to the printer, in stead of one
   gigantic bulk.
   
   Mayby I'm overlooking a part of you thought process.
   Do you have more information on how you would want to use this?
   ________________________________
   
   ---- Vishal ---------
   Create a binary (only namesakes with streamserve!!) variable with say
   values "red" and "white".
   Create a dummy free block(which does not display anything).
   Call this block in the before overflow action and change the color from
   "red" to "white" or vice versa.
   
   Use this variable as your tray correspondent variable.
   
   This should work when you are going to a next page from a frame
   overflow.
   -----------------
   Yes, this would work if I just wanted to print pages alternating on
   white and erd paper.
   The result would be 'Page 1 (White)', 'Page 2 (Red)', 'Page 3 (White)',
   'Page 4 (Red)', and so on.
   But I need: 'Page 1 (White)', 'Page 1 (Red)', 'Page 2 (White)', 'Page 2
   (Red)', and so on.
   
   How would you propose to send each page twice?
   ________________________________
   
   ---- Rob ------------
   Have you thought about creating 2 output connectors and selecting
   different tray options for each one.
   -------------------------
   Yeah, I thougth of that.
   The problem with 2 output connectors, is that they create 2 separate
   output jobs that are not mergable as far as I know.
   ________________________________
   
   --- Andreas --------
   Hi Rens,
   This is tricky. I belive that Sam is right... I think his solution is
   the
   only possible. Call one page with one tray setting and then call it
   again
   with another tray setting.
   Your job should be to organize the input so that one page is one
   process.
   This can be done by sending the input to file. May be you can send the
   document to a pdf file and then resend it via pdf in? I have not tested
   it,
   but i think you can set the filters so that you handle each page as a
   process. Or why not use the emf printer and create one large lxf and
   reprocess it...
   No solution though, but some thoughts of how to solve this.
   -----------------
   Resending via PDF...
   Very close to the solution I had in mind, but with a new twist.
   Intresting. I did not think of that.
   Good idea.
   ________________________________
   
   ---- Sam ---------------------
   I have another idea, but It's complicated :)
   
   What you could do is use the copies variable to have page 1 twice, and
   page 2 twice, page 3 twice, etc, but don't print these files, send them
   to a "text file" folder in your platform folder and give them a name
   with % variable. So then you will have some files in the folder (ex.
   Page1A.grb, Page1B.grb, Page2A.grb, Pae2B.grb).
   
   Now that these files are made, but not printed yet, you can collect
   them, and send them to the actual printer.
   
   I would start with the same script before :
   
   $copies = 2;
   //send to the file folder
   Callproc(allpages);
   //pages are made, so now collect them
   Callproc(sendpages_from_folder_to_output_printer);
   
   In the " sendpages_from_folder_to_output_printer" Pageout the script
   could be something like this (pseudocode):
   
   Takepagesfromfolder;
   While
   {
   Send pages to printer;
   }
   //now that everything has been send, delete the content of the folder
   deleteContentFolder();
   
   
   Would this work , or is this to complicated ? Have never tried this
   though,
   ------------------------------------------
   Complicated.... Yeah, so was the solution I had in mind.
   And this comes very near to the solution I had in mind.
   You have some nice additional ideas however.
   Good ideas.
   ________________________________
   
   
   What I had in mind was:
   
   *
   Process the data via PageOut.
   *
   Every line that will be processed, I write into a file to.
   *
   After every PAGE, I write a FormFeed to that file to.
   *
   After each message (event) I close the file and start a new one.
   
   Now, after the job I have several files with all the information I need.
   
   *
   Than I read in this file.
   Can be done via the internal loop connector, so afterwards we do not
   have to clean up the files.
   I have to set the input to process each page as an event.
   *
   I create a PageOut process, that just puts the lines tha are erad on
   the page.
   I know for shure that they will fit on one page, so I can CallProc
   the process twice each with different tray settings.
   
   What I like about you ideas:
   
   * Use PDF of LXF to process the first PageOut.
   Read that in in the second loop.
   This way, I would not have to do the layout for the PageOut in the
   first AND in the second loop.
   The first loop does the layout, and the second loop can do just the
   paper selection and duplication.
   Nice. :-)
   
   * I do not know if it is possible to set 'copies' in the LXF printer.
   I have to look in to that.
   In the PDF-driver it is possible.
   That would take care of the duplication in the output process.
   So I do not have to CallProc twice.
   The second loop does only have to flip-flip the trays.
   Nice. :-)
   
   
   Good ideas fellows.
   Thanks!
   
   Rens
   
   
   
   flagReport
   Was this post helpful? thumb_up thumb_down
 * spicehead-klqlb2jt
   pimiento
   Jun 19th, 2007 at 12:34 PM
   Hi Rens
   
   you should make an callproc twice and set the tray of the printer to
   different options.
   
   callproc("PageOUT")
   $tray = "Main tray";
   
   callproc("PageOUT")
   $tray = "Drawer 5";
   
   In the runtime you need to set the Tray selection as a variable ($tray) and
   make sure your driver actually can hit the right tray on the psysical
   printer.
   
   StreamServe will keep the documents together and the result will be as you
   want I believe.
   
   /werge
   
   
   
   flagReport
   Was this post helpful? thumb_up thumb_down
 * spicehead-t5wouiof
   pimiento
   Jun 22nd, 2007 at 1:23 PM
   Hi Rens,
   
   that's really a challenge.
   My idea is to split the job to 1 event per page. I did something
   like that using internals connectors:
   
   The first job will insert the begin event statement in the stream
   before each page and it will send the output (streamout) to a
   internal output connector. on the internal input connector in
   the second job you have prepared stream with event for every
   page. in that case is one process enough, it have to be called
   twice with different tray settings.
   
   Rgds.
   Moyo
   
   
   
   flagReport
   Was this post helpful? thumb_up thumb_down

lock

This topic has been locked by an administrator and is no longer open for
commenting.

To continue this discussion, please ask a new question.




READ THESE NEXT...


 * SPARK! PRO SERIES - 23 MAY 2023
   
   Spiceworks Originals
   
   Today in History: 23 May   On this day in 1994, Sun Microsystems Inc.
   formally announced its new programs, Java and HotJava at the SunWorld ‘95
   convention. The concept was to design a programming language whos...

 * 


 * HAVE YOU EVER BEEN A SPICEWORLD SPEAKER BEFORE?
   
   Spiceworks
   
   Hey SpiceFriends!We are nearing the cut-off time for our Call to Speakers for
   SpiceWorld 2023 (tomorrow, May 23rd)!Valerie (Spiceworks) 's original post
   with the details is found
   here: https://community.spiceworks.com/topic/2483332-speak-at-spiceworld-202...


 * WILD WILD WHATSAPP WEST
   
   Best Practices & General IT
   
   There has been a growing interest from employees in WhatsApp. We are finding
   that employees believe they need it to communicate with international clients
   as these clients prefer this method of communication. This is creating a
   little bit of a dilemma for...


 * FAILED DOMAIN JOIN
   
   Windows
   
   I have two virtualized machines, server and client. I set up AD DS on the one
   as server. Went to domain join client to the server (with os windows server
   2019 St. Ev.) and I'm receiving "0x0000251" error code.- The host (A) or
   (AAAA) records that map doma...


 * IN SEARCH OF A NEW MOUSE
   
   Hardware
   
   Sadly my mouse died a few weeks ago. Plugged it in today to see if it would
   magically fire back up, but to no avail. It was a UtechSmart Venus and worked
   great and was very comfortable. It lasted about 5 years, I was hoping to get
   10 out of it though.So n...

 * About
 * Contact
 * Support
 * Press / Media
 * Careers
 * SpiceWorld
 * Blog
 * * 
   * 
   * 
   * 

 * Sitemap
 * Privacy Policy
 * Terms of Use
 * Guidelines
 * Accessibility Statement
 * Do Not Sell My Personal Information
 * © Copyright 2006 - 2023 Spiceworks Inc.






WE CARE ABOUT YOUR PRIVACY

If you consent, we and our partners can store and access personal information on
your device to provide a more personalised browsing experience. This is
accomplished through processing personal data collected from browsing data
stored in cookies. You can provide/withdraw consent and object to processing
based on a legitimate interest at any time by clicking on the ‘Manage
Preferences’ button.Our Privacy Policy


WE AND OUR PARTNERS PROCESS DATA TO:

Store and/or access information on a device. Personalised ads and content, ad
and content measurement, audience insights and product development. Our Partners

Reject All I Accept
More Options