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

Report PDF Zip

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

    Report PDF Zip

    I would like someone to verify this please....

    I have found an issue that has been around for quite some time and not even certain if it was reported as a bug or not previously. I do have a bit more information on it than prior old threads I found regarding the issue.

    Zipping an Alpha created PDF will not happen. Any other pdf created outside of Alpha, whether v9 through today's current v10.5 builds 4091 / 3658 does work.....it will be included in a zip file. It also makes no difference what zip method is used--from the zip within email_send(), file.zip, zip_files, and another one I cannot recall---all will not zip when the pdf has been created via Alpha (from saving a report as pdf, using report.saveas(), report.archive(),...).

    Attached find 3 files within the zip....a csv, a pdf created outside of the above versions (but distributed by Alpha!), and a pdf created via Alpha. Or use your own to make absolutely certain.

    Use one of the following scripts by replacing the paths of where you save the files, where you want the zip to be saved, and/or your email address.

    Code:
    rpts=<<%A%
    C:\Estimate.csv
    C:\Customer.pdf
    C:\QB_Time_by_Job_Detail.pdf
    %A%
    
    msg="TESTING"
    rst=Email_send("your_email_address","Test Report for PDF",msg,rpts,"","",.f.,"","","",.t.,.t.)
    
    if rst=0
      msgbox("Not Sent")
     else
      msgbox("Sent")
    end if
    
    '==============....Or use....=========================
    
    file.zip("C:\Customer_Z.zip",rpts)



    Thanks!
    Mike
    __________________________________________
    It is only when we forget all our learning that we begin to know.
    It's not what you look at that matters, it's what you see.
    Henry David Thoreau
    __________________________________________




    #2
    Re: Report PDF Zip

    We ran into this same issue when trying to make a backup routine no PDF made with Alpha would be in the zip.

    Allen

    Comment


      #3
      Re: Report PDF Zip

      Allen,
      Did you also notice that a PDF created outside of Alpha seems to work just fine? If this is true then it still could be either Alpha's use of the PDF driver or perhaps the Amyuni driver has been created a bit differently for Alpha....so it could be in Alpha's court or Amyuni's as far as a fix.
      Mike
      __________________________________________
      It is only when we forget all our learning that we begin to know.
      It's not what you look at that matters, it's what you see.
      Henry David Thoreau
      __________________________________________



      Comment


        #4
        Re: Report PDF Zip

        If I had a PDF not made with the Alpha print driver it would be included in the zip. Only Alpha created PDF's were ignored and not included in the zip. Had to move to other things so this problem has been pushed to a back burner.

        Allen

        Comment


          #5
          Re: Report PDF Zip

          Thanks again Allen. I just sent in a bug report on it and will post any response.
          Mike
          __________________________________________
          It is only when we forget all our learning that we begin to know.
          It's not what you look at that matters, it's what you see.
          Henry David Thoreau
          __________________________________________



          Comment


            #6
            Re: Report PDF Zip

            I heard back from Selwyn and it works on his computer (of course!!). So I used a really bad, older computer I have and it also works!

            So this tells me that these issues most likely are very computer specific due to some OS glitch. To see if there is a common denominator let's compare our systems and any glitches we have.

            I am using XP Windows Media Center edition SP3 with 3gb ram, 2.8 dual core Pentium.

            The problem PC is the most stable I have ever run---it can be 2-4 weeks between reboots as there is no reason to other than updates or just to do it.

            My ONLY problem I currently have is what is referred to as a "context handler" issue. This is where it can take 30 seconds to a couple of minutes to either have the right click menu open, when trying to open a text file, or even copy/paste something. Not with every file but with enough to make it noticeable (and frustrating!).

            ANYONE with this PDF issue please report back with your specs as it would be really nice to be able to identify the common denominator for this.
            Mike
            __________________________________________
            It is only when we forget all our learning that we begin to know.
            It's not what you look at that matters, it's what you see.
            Henry David Thoreau
            __________________________________________



            Comment


              #7
              Re: Report PDF Zip

              I would really like to see if this issue can resolved. It may or may not be something that Alpha can fix as it does not happen on every PC and so could be a Windows' issue with an Alpha PDF. Regardless, the way it stands currently, any application that utilizes any zip function of Alpha's and tries to zip a PDF that has been created by Alpha may or may not work....this does make me think it has something to do with Alpha.

              If the issue cannot be identified and fixed what then?
              What should we tell end users of any application created for them....that depending upon what PC they use the report may or may not be included in a zip that is sent out via email or saved into a zip file?? I really do not think that would be a very salable product!!
              Mike
              __________________________________________
              It is only when we forget all our learning that we begin to know.
              It's not what you look at that matters, it's what you see.
              Henry David Thoreau
              __________________________________________



              Comment


                #8
                Re: Report PDF Zip

                I can confirm that I've had problems with the same issue. My computer is similar but with XP Pro. Mine has also been very stable. It did get shut down today though - the power went out. Prior to that was at least a week ago; maybe two or three.

                Comment


                  #9
                  Re: Report PDF Zip

                  The help file for File.zip() indicates the file list should be comma delimited. Mike, in your example you're delimiting the files with carriage returns and linefeeds. Might this account for what you're seeing ?

                  --------------------------------------
                  Later...

                  On further testing, using a comma delmited list, the file.zip() method did NOT include Mike's "customer.pdf" file. If that pdf was created with Alpha I'm getting the same resultes Mike (and others) have reported in this thread.

                  I'm running XP Pro SP3

                  -- tom
                  Last edited by Tom Cone Jr; 04-27-2011, 06:36 AM.

                  Comment


                    #10
                    Re: Report PDF Zip

                    Thanks Cal, Tom.
                    I checked the attributes of the PDFs generated with Alpha and those created outside of Alpha and are identical.

                    As I already submitted this as a "bug"/issue to Alpha and as Selwyn's PC does not have this problem (which one of my computers does not either), is there any possible work-around for this that would be generic enough to use in an application? I am thinking that perhaps an external open source zip program could be incorporated into Alpha which would zip the files when needed via xbasic.

                    Not preferable when you cannot use Alpha functions to keep everything within Alpha but I, and probably many others will now or eventually, need to have this working on ALL computers!
                    Mike
                    __________________________________________
                    It is only when we forget all our learning that we begin to know.
                    It's not what you look at that matters, it's what you see.
                    Henry David Thoreau
                    __________________________________________



                    Comment


                      #11
                      Re: Report PDF Zip

                      The wierdness continues.

                      Even if I rename the alpha created PDF I cannot zip it using the Alpha's file.zip() method.

                      Interestingly, if I use a third party utility I can zip the file just fine.

                      -- tom

                      Comment


                        #12
                        Re: Report PDF Zip

                        I have not tried this, but if Alpha can zip a folder, try putting the reports in a folder and zipping that, and see what happens
                        Cole Custom Programming - Terrell, Texas
                        972 524 8714
                        [email protected]

                        ____________________
                        "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                        Comment


                          #13
                          Re: Report PDF Zip

                          I had tested all this with many versions prior....but there were updates since then and it does work now in the current version of Alpha and the latest version of QReportBuilder v11 as well....so far with just limited testing....and am wondering if others still have the issue with the latest builds which negates my findings in that there will still be some PCs that this zip issue exists.

                          I don't like limiting something to only the latest build so will still try what Martin suggested; that way any version of Alpha can be made to work for zipping an Alpha created PDF.
                          Mike
                          __________________________________________
                          It is only when we forget all our learning that we begin to know.
                          It's not what you look at that matters, it's what you see.
                          Henry David Thoreau
                          __________________________________________



                          Comment


                            #14
                            Re: Report PDF Zip

                            I have been experimenting a bit.....and now I know (remembered that is) why I was not developing this in v10 at first.....once opened in v10 it destroys (deletes) most of the embedded xdialog code and a few other things as well which makes it then useless in prior versions. And yes, just opening the form which has the embedded xdialog causes this--no design mode entered into. It works fine in v10 after this happens but have to resort to a backup for v9 in order to get the xdialog code back and such.

                            I have had other issues with xdialog compatibility between versions and as much as I like them these sort of issues will make me a bit hesitant--especially for using an embedded xdialog.

                            Contemplating not going forward with this Add-on project as when finished (which it is close to being), it may only be able to be used in one version of Alpha....or I would have to create versions for every version of Alpha from v9 onward. Kind of discouraging to say the least....makes me wonder if this is one of the reasons why there are so few add-ons created for Alpha.

                            Ok, finished ranting!!

                            :)

                            Thanks everyone for your help on this--it is greatly appreciated.
                            Mike
                            __________________________________________
                            It is only when we forget all our learning that we begin to know.
                            It's not what you look at that matters, it's what you see.
                            Henry David Thoreau
                            __________________________________________



                            Comment

                            Working...
                            X