Alpha Video Training
Results 1 to 5 of 5

Thread: Variable Frame Bad error & EMailing a report

  1. #1
    Member
    Real Name
    D.Chiasson
    Join Date
    Jan 2004
    Location
    West Coast of Canada
    Posts
    632

    Default Variable Frame Bad error & EMailing a report

    I know that I requested this before in 2017 but the solutions of suggested of running InstallAmyuniPrinters did not fix. The story is long....sorry.

    We are using the following :

    Development Edition
    Alpha Anywhere v 4.3.2
    version 12.4.3.2 Build 4081
    System Addins 4811

    Runtime Plus
    Alpha Anywhere v 4.3.2
    version 12.4.3.2 Build 4081
    System Addins 4811

    with both Alpha Anywhere above we get an ERROR message when trying to send a report as an attachment to Email. The selections: Preview, Print or Save to File work 100% of the time.

    Error Variable Frame Bad.bmp

    Here is the script for a report....been around since 2002 and worked in v10.5 both development & runtime.

    'start of printreport script
    'Date Created: 19-Oct-2002 09:42:14 PM
    'Last Updated: 25-Jan-2018 11:11:50 PM
    'Created By : Administrator
    'Updated By : dewayne

    FUNCTION REPORTPRINT AS C (VAR->PRINTREPORT AS C )
    DIM PRINTTYPE as c
    PRINTTYPE = ui_get_radio("Select Report type","Preview","Preview","Print","E-Mail","Save to File")

    IF VAR->PRINTTYPE = "Preview" THEN
    'Preview a report, label, letter, form or browse layout. You can specify which records to preview.
    query.filter = ""
    query.order = ""
    :Report.Preview(VAR->PRINTREPORT,query.filter,query.order)
    END IF

    IF VAR->PRINTTYPE = "Print" THEN
    'Print a report, label, letter, form or browse layout. You can specify which records to print.
    query.filter = ""
    query.order = ""
    :Report.Print(VAR->PRINTREPORT,query.filter,query.order)
    END IF

    IF VAR->PRINTTYPE = "E-Mail" THEN
    'Send a report, label, letter, form or browse layout as an attachment to an e-mail message.
    query.filter = ""
    query.order = ""
    to_param = a5_eval_expression("")
    cc_param = a5_eval_expression("")
    bcc_param = a5_eval_expression("")
    subject_param = a5_eval_expression("")
    message_param = a5_eval_expression("")

    If var->D1 = "A5"
    :Report.send(VAR->PRINTREPORT,"PDF",query.filter,query.order,"A5")
    ELSE
    :Report.send(VAR->PRINTREPORT,"PDF",query.filter,query.order,"default")
    END IF

    END IF

    IF VAR->PRINTTYPE = "Save to File" THEN
    'Save a report, label, letter, form or browse to an Acrobat, Rich Text, HTML or Plain Text file. You can specify which records to save.
    query.filter = ""
    query.order = ""
    :Report.SaveAs(VAR->PRINTREPORT,"PDF",query.filter,query.order,"",.T.)
    END IF

    END FUNCTION
    'end of report script

    So I started to look at "earlier" versions of v12 and found the following scenario

    If we use the following Runtime Plus version the Email dropdown report choice does NOT crash.

    Runtime Plus:
    Alpha Anywhere v 3.5
    version 12.3 Build 2999
    System Addins 4519

    Bottomline, if we send our users our app with the OLD runtime the EMail report function works but when we are programming via the development edition we get problems.

    What to do? We are stuck....thanks.

  2. #2
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default Re: Variable Frame Bad error & EMailing a report

    No help for the report.send() if you have submitted a bug report and not gotten an answer.

    You might try coding the email section to save the report as pdf and name it as an attachment in EMAIL_CLIENT() or EMAIL_CLIENT_EXTERNAL(). Should give the same functionality.
    There can be only one.

  3. #3
    Member
    Real Name
    D.Chiasson
    Join Date
    Jan 2004
    Location
    West Coast of Canada
    Posts
    632

    Default Re: Variable Frame Bad error & EMailing a report

    How to others handle a report and EMail?

  4. #4
    "Certified" Alphaholic
    Real Name
    Finian Lennon
    Join Date
    Apr 2000
    Location
    Atlanta, GA
    Posts
    1,797

    Default Re: Variable Frame Bad error & EMailing a report

    I do a fair amount of emailing of reports and texts but only use email_send() as the method for sending and have had minimal issues. I handle the report creation much the same way as you and the reports are then sent as attachments. As it happens, I'm still using that build (2999/4519) as I had a bad experience with a later build and reverted and have never had a need to go forward.
    Finian

  5. #5
    Member
    Real Name
    D.Chiasson
    Join Date
    Jan 2004
    Location
    West Coast of Canada
    Posts
    632

    Default Re: Variable Frame Bad error & EMailing a report

    I have asked my programmer to send in a BUG report to Alpha. We were very lucky that we did not send the new runtime to all our users as we would be getting many panic calls.

Similar Threads

  1. Error - AmyuniLowLevelPrint() variable frame bad
    By dchiass in forum Windows Desktop Applications
    Replies: 4
    Last Post: 12-24-2017, 12:59 AM
  2. Emailing a report.
    By Atta in forum Application Server Version 10 - Web/Browser Applications
    Replies: 4
    Last Post: 05-29-2011, 02:03 AM
  3. Variable frame bad
    By cawalton1 in forum Alpha Five Version 10 - Desktop Applications
    Replies: 3
    Last Post: 09-28-2010, 05:49 AM
  4. Emailing a report
    By puterguy53 in forum Alpha Five Version 10 - Desktop Applications
    Replies: 4
    Last Post: 08-12-2010, 03:41 PM
  5. Emailing a Report
    By cahalsall in forum Alpha Five Version 7
    Replies: 2
    Last Post: 12-07-2007, 08:14 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •