Results 1 to 14 of 14

Thread: Access-VB data module

  1. #1

    Thread Starter
    Member DragonFly's Avatar
    Join Date
    Feb 2002
    Location
    Down Under
    Posts
    59

    Access-VB data module

    Hi there... has anyone got any insight into this..

    basically I need a module which can do the following ...

    1. Open a word document that's at least as large as a set > mb size.

    2. Pop it into acrobat distiller (adobe's compression routine).

    3. Re-name as original name but replace the .doc extension with .pdf.

    4. Write to a new folder.

    5. Complete and return program flow to Access.

    Any ideas appreciated
    Last edited by DragonFly; Aug 6th, 2002 at 04:47 AM.

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Do you have any documentation on "distillet" ?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    Member DragonFly's Avatar
    Join Date
    Feb 2002
    Location
    Down Under
    Posts
    59
    Jamie.... sorry that was a typo ... should have been "distiller" is a compression function of Acrobat.. I am at home now and don't have Acrobat installed here, so I can't check the details.

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Hmm buggery ******tits.
    I'll have a look around here
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  5. #5

    Thread Starter
    Member DragonFly's Avatar
    Join Date
    Feb 2002
    Location
    Down Under
    Posts
    59
    Thanks Jamie.. any assistance greatly appreciated

  6. #6
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    k.
    you send me the extra vbf members pics, and I'll look up about distillation for you
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  7. #7

    Thread Starter
    Member DragonFly's Avatar
    Join Date
    Feb 2002
    Location
    Down Under
    Posts
    59
    Deal Baby

  8. #8
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Okay.
    Adobe Distiller should come with a Word macro compatible with newer versions of Microsoft Word.

    Basically, from what I can tell, you'd want to Print the word document, but Print to File, and Print using the Printer : Adobe Distiller

    That should create the .pdf file for you
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  9. #9

    Thread Starter
    Member DragonFly's Avatar
    Join Date
    Feb 2002
    Location
    Down Under
    Posts
    59
    Thanks Jamie

    I thought that would be the case.. but my boss wants it in a VB routine to search our database of reports.

    This is a bit beyond my level of programming... but I will ask Jello to have a look at it for me.

  10. #10
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Its fairly easy programatically as far as I know.
    Um, just set the default printer = "Adobe Distiller", .PrintToFile = True ( lol I'm just assuming that property exists ) and then print.

    I'll see if I can dig up some printer code...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  11. #11
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well starting from here you can enumerate the list of available printers :

    VB Code:
    1. Private Sub Form_Load()
    2.     Dim x As Printer
    3.     For Each x In Printers
    4.         Debug.Print x.DeviceName
    5.     Next
    6. End Sub

    So I'm going to look up the printer object...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  12. #12
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    VB Code:
    1. Private Sub Form_Load()
    2.     Dim x As Printer, found As Boolean
    3.     For Each x In Printers
    4.         If x.DeviceName = "Adobe Distiller" Then
    5.             found = True
    6.             Exit For
    7.         End If
    8.     Next
    9.    
    10.     If found Then
    11.        
    12.         '' code to make printer 'x' actually print something
    13.        
    14.     End If
    15.    
    16. End Sub

    ... something like that ?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  13. #13

    Thread Starter
    Member DragonFly's Avatar
    Join Date
    Feb 2002
    Location
    Down Under
    Posts
    59
    Thanks Jamie you are a legend


    Will give that a go at work tomorrow.. and let you know how I went *nervous*

  14. #14
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    n/p
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

Posting Permissions

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



Click Here to Expand Forum to Full Width