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

Is anyone using �report.saveas()" in a web application?

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

    #16
    Re: Is anyone using �report.saveas()" in a web application?

    I case anyone is interested the comma issue I was having has been fixed and will be in the next update.
    Win 10 64 Development, Win 7 64 WAS 11-1, 2, Win 10 64 AA-1,2, MySql, dbForge Studio The Best MySQL GUI Tool IMHO. http://www.devart.com/dbforge/mysql/studio/

    Comment


      #17
      Re: Is anyone using �report.saveas()" in a web application?

      It's those old 8.3 days that keep me from using commas in filenames, and even as number separators in spreadsheets.
      Something along the thinking of just because I can do it doesn't mean I should do it.
      Gregg
      https://paiza.io is a great site to test and share sql code

      Comment


        #18
        Re: Is anyone using �report.saveas()" in a web application?

        yea, but, "If you continue to think like you�ve always thought, you�ll continue to get what you�ve always got"... "nothing ventured nothing gained"..., etc, etc, etc...
        Win 10 64 Development, Win 7 64 WAS 11-1, 2, Win 10 64 AA-1,2, MySql, dbForge Studio The Best MySQL GUI Tool IMHO. http://www.devart.com/dbforge/mysql/studio/

        Comment


          #19
          Re: Is anyone using �report.saveas()" in a web application?

          Originally posted by Steve Workings View Post
          Gandhi - you might consider modifying your code to save the file in the session folder. While the addition of the date/time keeps your filename unique, putting it in the session folder is additional guarantee against users duplicating/crossing results, and it provides automatic cleanup when the session folder expires. I note this here mostly so that others following this example understand that placement in the session folder is better.
          This link: http://wiki.alphasoftware.com/Storin...+in+Version+11 says to start using Session.SaveDataAsFile() and drop Session.Session_Folder. The beginning of the article mentions Session.SaveDataAsFile(), then 2 lines below it mentions Session.SaveDataToFile(). Are these 2 different methods or the same with 2 different faces? Can someone please give an expl 1) which one to use and 2) how to use it in conjunction with report.saveas() to attach the file to an email.

          Comment


            #20
            Re: Is anyone using �report.saveas()" in a web application?

            I notified A5 yesterday because report.saveas() was displaying an error when using the �RTF� or �HTML� format option with a layout-table report. They replied back and said that I should not be using report.saveas() in the first place because it was not intended for use in a background thread. (I assume it�s not thread safe). They said to use a5w_report_saveAs() instead. This function takes the same exact argument list with the exception of the �openApplication� argument. This is the 6th argument. It should be changed to the global variables pointer - "global_variables()". I�m not sure if the function will work or not if you omit this argument or pass a NULL.

            Below is how I am calling this function and it is working great.

            a5w_report_saveAs(reportName,�RTF�,filter,order,filename,global_variables(),printOptions,args,options)

            Note: This did not solve my original problem however. I had to install the latest release candidate (Version 11, Build 3184) and then the problem went away. I thought I would pass this along.

            Comment


              #21
              Re: Is anyone using �report.saveas()" in a web application?

              Hard to keep up. The Help says nothing about a5w_report_saveAs, not in release notes or syntax parser either.
              Steve Wood
              See my profile on IADN

              Comment


                #22
                Re: Is anyone using �report.saveas()" in a web application?

                Steve,

                Take a look inside the system page "__a5RunReport.a5w". This code is executed when you call the Action Javascript to open a report, letter, or label. a5w_report_saveAs is the function that generates the report.

                Comment


                  #23
                  Re: Is anyone using �report.saveas()" in a web application?

                  This thread is pure gold :-)

                  Comment


                    #24
                    Re: Is anyone using �report.saveas()" in a web application?

                    I agree Jaime. I am now on the part of my project where I need to generate applicant reports for sale to employers and I am glad I stumbled upon this thread. I need to generate and save reports on the fly and deliver them to the buyer after he has paid via Paypal. I'm open to suggestions and tips from the veterans here who may have been down that road before.
                    Rapid Development, Training, Support
                    http://data2web.network
                    903-740-2549

                    Comment


                      #25
                      Re: Is anyone using �report.saveas()" in a web application?

                      On the PayPal side you need to use their IPN - Instant Payment Notification. When the user pays, PayPal sends the acknowledgement back to your website as a POST, and you use that information to update the buyers status regarding whatever they purchased.

                      You can see an example of this on my website if you fake a purchase, and then look at the source of the checkout page near where the PayPal Pay Now button is. What you can't see is the "response" page, the one that listens for PayPal's response.
                      Steve Wood
                      See my profile on IADN

                      Comment


                        #26
                        Re: Is anyone using �report.saveas()" in a web application?

                        I am trying to use this function.
                        a5w_report_saveAs(cReportName,”PDF”,"","",cFileName,global_variables(),"",myargs,pOptions)
                        but I keep getting an error at compile time 'expected value' and it crashes the grid when run.

                        This variation works fine and I am not aware of any issues.
                        report.saveas(cReportName,"PDF","","", cFileName,.F.,.F.,myargs,pOptions)

                        any additional ideas, pointers?
                        Win 10 64 Development, Win 7 64 WAS 11-1, 2, Win 10 64 AA-1,2, MySql, dbForge Studio The Best MySQL GUI Tool IMHO. http://www.devart.com/dbforge/mysql/studio/

                        Comment


                          #27
                          Re: Is anyone using �report.saveas()" in a web application?

                          The print options argument is a pointer, not a character string. Define the following variable:

                          dim printOptions as p

                          And then add it to the function arguments:

                          a5w_report_saveAs(cReportName,”PDF”,"","",cFileName,global_variables(),printOptions,myargs,pOptions)

                          Comment


                            #28
                            Re: Is anyone using �report.saveas()" in a web application?

                            That fixed it. Thank you.
                            Win 10 64 Development, Win 7 64 WAS 11-1, 2, Win 10 64 AA-1,2, MySql, dbForge Studio The Best MySQL GUI Tool IMHO. http://www.devart.com/dbforge/mysql/studio/

                            Comment


                              #29
                              Re: Is anyone using �report.saveas()" in a web application?

                              This is what I am using with success, hope you can use it...
                              (This is in an XBasic Function but could be used in Server Side as well)


                              dim vReport as c
                              dim lname as c = e._currentRowDataOld.add_lname
                              dim fname as c = e._currentRowDataOld.add_fname
                              dim regnum as c = e._currentRowDataOld.reg_number
                              dim sqlfilter as c = "reg_number = " + regnum
                              dim rptname as c = "c:\a5v11\A5Webroot\Reports\Resume_"+fname+"_"+lname+"_"+regnum+".pdf"
                              vReport = report.saveAs("RESUME PROFILE@[PathAlias.ADB_Path]\able4.alb","PDF", sqlfilter,"",rptname)

                              RESUME PROFILE = The name of my designed report

                              @[PathAlias.ADB_Path]\able4.alb = Where to find the project.alb file

                              "PDF", sqlfilter,"",rptname = Type of report you want, the sql filter and the output filename you want
                              Rapid Development, Training, Support
                              http://data2web.network
                              903-740-2549

                              Comment


                                #30
                                Re: Is anyone using �report.saveas()" in a web application?

                                I want to add one more item to this excellent thread. When I switched from DBF files to SQL I saw the attached warning in the profile section about setting the pathalias to 'undefined' and I followed the instructions. Of course if you do this your pathalias statements in the report save as can't find the ALB file with the report definitions. It took quite a bit of time and frustration to figure this out. So in additional to an undocumented proper method running reports "a5w_report_save_as" we also have just plain wrong information about how to setup your profile if want to run any reports using a SQL database.

                                profile.png

                                Tom

                                Comment

                                Working...
                                X