Alpha Video Training
Results 1 to 4 of 4

Thread: Utilising pdf files from within Alpha5 v8

  1. #1
    Member
    Real Name
    john gilbert
    Join Date
    Apr 2007
    Location
    Sydney Australia
    Posts
    2

    Default Utilising pdf files from within Alpha5 v8

    Re PDFs, I have a need for a user to append, attach or embed pdfs in an a5 data file ... or if not possible then store the file reference and later access pdfs from within an A5 app. I've not been programing A5 for a while, so I'm rusty. However there's a 2006 thread suggesting a way to do the latter in A5v7 ...

    http://msgboard.alphasoftware.com/al...light=view+pdf

    Can anyone confirm this is (still?) the optimal way to meet this need?

    john g

  2. #2
    VAR
    Real Name
    Martin W. Cole
    Join Date
    Apr 2000
    Location
    Terrell, Texas (near Dallas)
    Posts
    5,950

    Default Re: Utilising pdf files from within Alpha5 v8

    look in the V8 Help files - at the index type pdf - and note there is a function pdf_append() and pdf_merge() and pdf_pagecount()

    I use the append function in a loop, to save all reports for a project to a pdf file and append - so I end up with a giant pdf that contains all relevent data for the project - which is saved for audit/documentation/legal purposes.
    Cole Custom Programming - Terrell, Texas
    972 524 8714
    martin_w_cole@msn.com

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

  3. #3
    VAR
    Real Name
    Martin W. Cole
    Join Date
    Apr 2000
    Location
    Terrell, Texas (near Dallas)
    Posts
    5,950

    Default Re: Utilising pdf files from within Alpha5 v8

    sorry - misread your question

    here is code that I use to let a user go to a folder and click on files to select

    Code:
    parentform.cancel()
    flist=ui_get_files_multiple(remember,remember,"*.jpg")
    if flist=""
     end
    end if
    temp=word(flist,1,crlf())
    tempn=w_count(temp,chr(92))
    temp2=word(temp,1,chr(92),tempn-1)
    remember=temp2
    text1.show(); text1.text="Please Wait"; text1.refresh(); 'xbasic_wait_for_idle()
    t=table.current()
    for i=1 to w_count(flist,crlf())
     t.enter_begin()
      t.prproject=var->projectn
      t.meetingid=var->meetingid
      t.image1=word(flist,i,crlf()) 'an image reference field
      t.imagepath=word(flist,i,crlf()) 'a character field - 255 wide
     t.enter_end(.t.)
    next
    parentform.resynch()
    text1.text="Finished"; text1.refresh()
    sleep(1/5)
    text1.hide()
    browse1.fetch_first()
    remember is a global variable that keeps track of the last directory that was used, and I save to the registry for the workstation when they exit and initialize when they open the adb

    the only part you would want to write to a field would be the line

    t.imagepath=word(flist,i,crlf())

    tried to make a picture for you - but the image max size is 100KB - and even a tiny pic saved as a png is 137 KB.
    Cole Custom Programming - Terrell, Texas
    972 524 8714
    martin_w_cole@msn.com

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

  4. #4
    Member
    Real Name
    john gilbert
    Join Date
    Apr 2007
    Location
    Sydney Australia
    Posts
    2

    Default Re: Utilising pdf files from within Alpha5 v8

    Martin

    Elegant

    And thanks for the quick reply.

Similar Threads

  1. Alpha5 PDF printer return an error
    By Anis in forum Alpha Five Version 7
    Replies: 2
    Last Post: 05-02-2006, 03:15 PM
  2. Need help Importing files (Excel)into Alpha5
    By vaxennet in forum Alpha Five Version 6
    Replies: 16
    Last Post: 02-14-2006, 11:04 AM
  3. Help with PDF Help files
    By Raymond Lyons in forum Alpha Five Version 6
    Replies: 5
    Last Post: 12-13-2004, 04:07 AM
  4. PDF Files
    By Michael Humby in forum Alpha Five Version 4
    Replies: 4
    Last Post: 02-03-2002, 09:54 AM
  5. Moving Alpha5 Files
    By Graham Wickens in forum Alpha Five Version 4
    Replies: 4
    Last Post: 12-01-2000, 08:44 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
  •