Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Print double sided pdf

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Print double sided pdf

    We have been given a PDF that needs to be sent out with many of our letters and reports. The letters are single sided, and the PDF is double sided. We don't have control over the PDF, it is locked.
    I have tried using the report.printer_override function to change the behavior of the printer to be duplex, but we are just doing a sys_print() of the pdf, and I think the report.printer_override works only with "reports" or "letters" created in Alpha. I was hoping there were options on the sys_print, but no luck.

    This is the code I'm using. If anyone can see what I'm doing wrong, it would be greatly appreciated.
    Code:
    DIM vcprinter as C = UI_PRINTER_DEFAULT_GET()
    DIM ans as C = ""
    'see if they have the EBT Printer as a choice
    temp=ui_printers_get()
    'Select the correct printer name this should work for any OS
    ans = alltrim(*for_each(foo,if((vcprinter $ word(temp,*counter(),crlf())),word(temp,*counter(),crlf()),""),temp))
    delete options
    dim options as P
    dim options_text as C
    ' Before you can initialize 'options' using the property_from_string() function at least one dot variable must exist. therefore, create a dummy variable.
    options.dummy = 1
    options_text = <<%str%
    <duplex="Horizontal">
    %str%
    ' Create a dot variable from options_text.
    ' The dot variable contains the printer properties to be overridden
    property_from_string(options, options_text)
    ' Now you can delete the dummy variable
    delete option.dummy
    ' oldOptions will store the current printer options, so that we can restore them.
    delete oldOptions
    dim oldOptions as P
    oldOptions.dummy = 1
    ' Set the printer override settings.
    old_printer_name = report.Printer_override(ans, options, oldOptions)
    sys_print("G:\BCBSS\Non Discrimination Statement-revised 3-1-17.pdf")
    report.Printer_override(ans,oldOptions)
    Tom

    #2
    Re: Print double sided pdf

    Does it need to stay double sided? You could scan the two sides to separate documents?
    There can be only one.

    Comment


      #3
      Re: Print double sided pdf

      Stan,

      Thanks for replying so quickly.

      We actually WANT it to be double sided. With the amount of printing we do, anything we can do to reduce the number of pages produced helps.

      Comment


        #4
        Re: Print double sided pdf

        I have one of my printers duplicated in windows one to print full page & one to print booklet than just choose the correct print driver.

        printer.PNG

        Comment


          #5
          Re: Print double sided pdf

          Thanks, but we have any number of people here printing letters to network printers. I can't imagine having to change printer drivers on that many printers just to switch to duplex.

          Comment


            #6
            Re: Print double sided pdf

            Than I think that you will need to use a 3 party PDF reader with command line options to do the printing. I just tested SumatraPDF. I used the portable version.

            In the interactive window:


            abc = "C:\SumatraPDF\SumatraPDF.exe -print-to-default -print-settings duplex C:\SumatraPDF\ARPump.pdf"

            ?sys_shell(abc)

            Comment


              #7
              Re: Print double sided pdf

              Allen,

              Thanks, but that would involve installing the PDF reader on over 200 machines. Do you know if Adobe has a similar method?

              Comment


                #8
                Re: Print double sided pdf

                Adobe Reader does have or did have command line switches you would need to test your version. There is much concern in the Adobe community that they may be discontinued at any time. You would also need to add a driver as I said in my first post as I don't see any way to set printer settings with command line switches in Adobe Reader,

                Command line switches:

                Code:
                Open a PDF file:
                
                    AcroRd32.exe PdfFile
                
                Open a PDF file in a new instance of Adobe Reader:
                
                    AcroRd32.exe /N PdfFile
                
                Open a PDF file at page 7:
                
                    AcroRd32.exe /A "page=7=OpenActions" PdfFile
                
                Open a PDF file with navigation pane active, zoom out to 50%, and search for and highlight the word "batch":
                
                    AcroRd32.exe /A "zoom=50&navpanes=1=OpenActions&search=batch" PdfFile
                
                Print a PDF file with dialog:
                
                    AcroRd32.exe /P PdfFile
                
                Print a PDF file silently:
                
                    AcroRd32.exe /N /T PdfFile PrinterName [ PrinterDriver [ PrinterPort ] ]
                
                The last command will open a new Adobe Reader window, print the PDF file and then terminate its window unless that window happens to be the only Adobe Reader window left: at least one Adobe Reader window will be left open.
                SumatraPDF is free it does not need to be installed if you use the portable version you would just place the 'EXE' in a folder and use it from there to uninstall it just remove the folder.

                http://www.sumatrapdfreader.org/free-pdf-reader.html

                Comment


                  #9
                  Re: Print double sided pdf

                  Originally posted by Tom Henkel View Post
                  Stan,

                  Thanks for replying so quickly.

                  We actually WANT it to be double sided. With the amount of printing we do, anything we can do to reduce the number of pages produced helps.
                  is it not possible to set the printer properties to duplex in the control panel-printers-printer-preferences then all the print jobs will be duplex?
                  or this is not possible since there are lots of printers involved. (the printer should be capable of duplex printing)
                  thanks for reading

                  gandhi

                  version 11 3381 - 4096
                  mysql backend
                  http://www.alphawebprogramming.blogspot.com
                  [email protected]
                  Skype:[email protected]
                  1 914 924 5171

                  Comment


                    #10
                    Re: Print double sided pdf

                    Originally posted by Tom Henkel View Post
                    Thanks, but we have any number of people here printing letters to network printers. I can't imagine having to change printer drivers on that many printers just to switch to duplex.
                    Hi Tom,
                    If the printers are networked from the server, all you need is to duplicate the printer driver on the server and set it to print in duplex mode then name it something lilke Canon-duplex. How many shared network printers are there?
                    Robin

                    Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

                    Comment


                      #11
                      Re: Print double sided pdf

                      Robin and G,

                      Thanks for your input, but the problem is that we print single sided letters from Alpha, and we need to also print this double sided pdf to go along with the letters. We are required by the state to include this double sided document with the single sided letters. It would be great if the workers would remember to just gram a copy of the double sided document and attach it to the letters, but that never works. We can't just go and change the printer parameters to do all double sided.

                      Tom

                      Comment


                        #12
                        Re: Print double sided pdf

                        It sounds like you are doing the printing for a snail mail out. Since Alpha can print the letters and reports, why not let Alpha open the pdf and have the user print the copies you need to send by selecting the duplex printer in Acrobat Reader? Unless I am missing something as to what you are doing.
                        Robin

                        Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

                        Comment


                          #13
                          Re: Print double sided pdf

                          Robin,

                          Thanks, but we can't necessarily depend on the user to select duplex. We don't have a problem opening the document in Alpha, but we want to make it seemless to the user.

                          Tom

                          Comment


                            #14
                            Re: Print double sided pdf

                            Not sure if this qwill help, but have several required cbl sided forms to print. Made a repory for eacgh side, print front an dremind the user to reverse paper for back, then print
                            Dave Mason
                            [email protected]
                            Skype is dave.mason46

                            Comment


                              #15
                              Re: Print double sided pdf

                              Thanks, Dave.

                              We would have created the document as a report except that the first page is portrait, normal English print.

                              The second page is landscape in 15 different languages.

                              Normally I can recreate a document, even if it is in Spanish, but 15 different languages is a bit too much. I'm not even sure we have the fonts to do it.

                              Comment

                              Working...
                              X