I've been searching through posts but haven't found a solution. Can anybody tell me how to print a DOC file to the PDF Writer? -in order to get a PDF version of my DOC-
Emiliano F. Martín
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
You need the "Microsoft Word 9.0" (or similar) reference for that to work.
Emiliano F. Martín
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
You would need this BAS (or similar functions) to work with the registry.
BTW, I've already tried to write a different directory in the registry -to get the files created where I was asking- but the Acrobat Distiller raised an error and didn't created. So... this is the only way I found.
Emiliano F. Martín
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
Ok, I've already found out how to open Word and print to the PDF Writer to get the PDF I needed. However, does any of you know how to set the security of the PDF? It creates a PDF with these properties:
Security Method: None
Open Password: No
Security Password: No
Printing: Allowed
Changing the Document: Allowed
Selecting Text and Graphics: Allowed
Adding or Changing Annotations and Forms Fields: Allowed
I don't want to change all this stuff... but at least the Changing the Document to Not Allowed (for obvious reasons)
Any ideas?
Emiliano F. Martín
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
'Wait until the LOG file is created... this means the PDF has just
'been created
Anyway... Try this instead:
VB Code:
Do
DoEvents
Loop Until Len(Dir(Path & "Microsoft Word - *.log", _
vbArchive))
Emiliano F. Martín
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
'Copy the file to the same directory where the DOC was.
FileCopy Path & fName, _
FileName
Do Until Len(Dir(FileName, vbArchive))
DoEvents
Loop
MsgBox "The PDF has been created"
'Set the default printer to the original.
.ActivePrinter = pName
End With
'Close Word.
objWord.Quit
' clean up after our-selves
Set objWord = Nothing
Set objDocument = Nothing
End Sub
If we are using a Path variable... let's use it in the whole code.
Emiliano F. Martín
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
I can't remember. What's most important is that the Distiller Printer is in the list.
Emiliano F. Martín
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
Then something is missing... that code won't help.
Emiliano F. Martín
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
This is good with changing .doc to .pdf, what about if I have to save my email message wether its outlook message or netscape message to a .pdf message by selecting File menu>print, and how can you give an a name to the saved .pdf file automatically?
I think it's possible to save email message to .pdf I have seen this in one of document managment application, but I don't know the code behind it !!!
Me neither... and I don't have time to start trying to do it. I gave you the idea, play with it to get what you need. Sorry.
By the way... that would be what I would have to do (play with that code), but I neither have the time nor the need to have it done. So, I won't be able to be of much help.
Emiliano F. Martín
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
Originally posted by sentme_mail i recieved this error
c:\prt.vbs(1, 17) Microsoft VBScript compilation error: Expected end of statement
What did you try to do??
Emiliano F. Martín
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
Yes... that code is not VB Script. It's Visual Basic.
Emiliano F. Martín
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
Originally posted by sentme_mail i am acutally look for a vb script which can automatically print a text file which i have exported from the NT event log. do you have any?
a "text" file? Man, you're way out in the wrong thread!
Emiliano F. Martín
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
Originally posted by sentme_mail where should i post it ?
Post a . This thread was discussing how to print a PDF file (with Visual Basic)
Emiliano F. Martín
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
Ok... be patient! Don't garbage this thread anymore... it has nothing to do with what you need.
Emiliano F. Martín
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
I think you should post it in the .Net forums. I've no idea, but should not be that hard since I see nothing that "strange".
Emiliano F. Martín
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
Well, i simply need to convert the word doc to pdf using new .net technology. There was no code snippet on this. Anyway thx for the replies. Just wondering because i'm keep getting errors.
Originally posted by szlamany We install PDF Print Drivers (from Adobe) on our customers machines and a PDF Printer simply appears in the PRINTER collection.
This requires no programming changes whatsoever - simply print to it like it's another printer.
I hear there are shareware versions of PDF Print drivers available if the cost of the Adobe is too much.
Why go through all this to get a output file in .PDF format?
The code I posted does just that. It changes the active printer to the Acrobat's, prints it and change the active printer to the one that was selected before.
Emiliano F. Martín
If a post has helped you then pleaseRate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
Originally posted by Mc Brain The code I posted does just that. It changes the active printer to the Acrobat's, prints it and change the active printer to the one that was selected before.
Sorry - it's a little early here and we are already having customer breakdown all over...