|
-
Aug 6th, 2002, 03:41 AM
#1
Thread Starter
Member
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.
-
Aug 6th, 2002, 04:30 AM
#2
Retired VBF Adm1nistrator
Do you have any documentation on "distillet" ?
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Aug 6th, 2002, 04:42 AM
#3
Thread Starter
Member
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.
-
Aug 6th, 2002, 04:48 AM
#4
Retired VBF Adm1nistrator
Hmm buggery ******tits.
I'll have a look around here
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Aug 6th, 2002, 04:51 AM
#5
Thread Starter
Member
Thanks Jamie.. any assistance greatly appreciated
-
Aug 6th, 2002, 04:52 AM
#6
Retired VBF Adm1nistrator
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]
-
Aug 6th, 2002, 04:54 AM
#7
Thread Starter
Member
Deal Baby
-
Aug 6th, 2002, 05:02 AM
#8
Retired VBF Adm1nistrator
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]
-
Aug 6th, 2002, 05:22 AM
#9
Thread Starter
Member
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.
-
Aug 6th, 2002, 05:25 AM
#10
Retired VBF Adm1nistrator
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]
-
Aug 6th, 2002, 05:27 AM
#11
Retired VBF Adm1nistrator
Well starting from here you can enumerate the list of available printers :
VB Code:
Private Sub Form_Load()
Dim x As Printer
For Each x In Printers
Debug.Print x.DeviceName
Next
End Sub
So I'm going to look up the printer object...
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Aug 6th, 2002, 05:34 AM
#12
Retired VBF Adm1nistrator
VB Code:
Private Sub Form_Load()
Dim x As Printer, found As Boolean
For Each x In Printers
If x.DeviceName = "Adobe Distiller" Then
found = True
Exit For
End If
Next
If found Then
'' code to make printer 'x' actually print something
End If
End Sub
... something like that ?
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Aug 6th, 2002, 05:38 AM
#13
Thread Starter
Member
-
Aug 6th, 2002, 05:40 AM
#14
Retired VBF Adm1nistrator
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|