Alpha Video Training
Results 1 to 3 of 3

Thread: pdf in ole field

  1. #1
    Member
    Real Name
    Bruce Williams
    Join Date
    Mar 2002
    Location
    Barrington, NJ
    Posts
    271

    Default pdf in ole field

    I have a form designed in v 4.5 for ole field. I tried to place a pdf (adobe acrobat) file into it and got the message: "Can not insert OLE object: Comm"
    I couldn't in v 4.5 either, but I was hoping that I could in v 5. Can it be done? What might be the problem?

  2. #2
    Alpha Software Employee Selwyn Rabins's Avatar
    Real Name
    Selwyn Rabins
    Join Date
    Mar 2000
    Location
    Boston, MA
    Posts
    5,297

    Default RE: pdf in ole field

    i have not tried to do it yet, so i can't say why it is not working, but one thing you might consider would be to NOT use an ole field (storing a second copy of a pdf file in an a5 database seems unnecessary, and just results in the size of your database bloating up).

    instead, simply create a field that contains the filename of the pdf file, and then put a button next to the field that opens the pdf file.

    the xbasic code for the button would be

    t = table.current()
    filename = t.pdf_file
    sys_open(filename)


    (assuming that the name of the field that contained the filename was "pdf_file")

    you can test this from the interactive window as follows:



    fn = ui_get_file("","")
    ?fn
    = "C:\Program Files\A5V5\Books\Learning Xbasic.pdf"
    sys_open(fn)

  3. #3
    Member
    Real Name
    Bruce Williams
    Join Date
    Mar 2002
    Location
    Barrington, NJ
    Posts
    271

    Default RE: pdf in ole field

    Thanks. I'm trying to learn xbasic, but it is slow going. This scipt worked fine, except I can not see the form until the button is invoked.

Similar Threads

  1. Browser Bug: Checkbox field does not respect field rules
    By Blake in forum Alpha Five Version 6
    Replies: 4
    Last Post: 10-06-2005, 05:11 PM
  2. field rules lookup table and field to fill
    By rleunis in forum Web Application Server v6
    Replies: 5
    Last Post: 09-22-2005, 07:33 AM
  3. A5V5 Calulated field and Field Rules problem
    By Steve Hempfliong in forum Alpha Five Version 5
    Replies: 8
    Last Post: 08-08-2002, 05:32 PM
  4. Aarghh! Field object references non-existent field
    By Greg Fong in forum Alpha Five Version 4
    Replies: 4
    Last Post: 08-16-2001, 11:36 PM
  5. Field in record expanded - apply to calc field?
    By Roland Hughes in forum Alpha Five Version 4
    Replies: 2
    Last Post: 05-24-2001, 08:01 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
  •