I got it to work in the same way as the Excel method. The only difference was setting the name of the pdf file to open to be the same as the name of the report, and not the name of the database. I have always had problems running reports from Access through code, (docmd doesn't always work) so...
Yes I can. This is some code that was used to print an excel sheet through distiller.
The first thing you need to do is to go into your control panel, and setup where the default path for distiller to "dump" it's files is located. When I was testing this method, I set it up as...
It's hard to make out what it is that you are doing, but it sounds like you are retrieving an array of data from a database of some sort, and then having a problem getting the information back out, or a recordcount. If that's it, then make sure you have it move to the last record first, you...
Unfortunately, I don't have much experience poking around in the Window's registry through code. Try doing it manually, going through Regedit, adding the string and the value, then printing something to the PDFWriter, see if that works, if it does, then you know that you are on the right tract...
There was an above question about converting AutoCAD files into PDF through code. Here is the code that I use in my VBA programs to do it.
***
PlotPlanPath = <desired output path and filename>
Open ("c:\windows\system\pdfwritr.ini") For Append As #1
Print #1, "PDFFileName =...
Acrobat will insert the pages in the same order that they are selected. (ex. If you select a group of files by dragging a window from right to left, it will insert the files starting with the file that is furthest to the right, and vice versa.) If you can figure out a way to control what order...
Before you send to the printer. Your Win2k login probably doesn't have the rights for editing the registry. Here is the address of the documentation from Adobe that goes into more detail on how to do this...
Ok, finally hunted down a Win2k machine with Adobe Acrobat 5. It isn't in an .ini file at all. It is in the Windows Registry under H_Key_Current_User\Software\Adobe\Acrobat PDFWriter add a string value called "PDFFileName" and assign the full path and filename that you want as the...
Well I don't know much about C, but I've had some problems with getting VB to work consistently with the .ini file as well. The only other way I've had success with doing it is to print the file through distiller, and then open the created .pdf file, save it to a location that I want, and then...
The pdfwritr.ini file is only for Windows 95 and 98. For Windows 2000 (which is NT based) try the file _pdf.ini in the Windows printers directory. Sorry I couldn't be more help, I'm sitting in front of a 98 machine, and don't have access to a NT or 2000 machine to test it out.
I hope I haven't completely misunderstood you, but here goes. I would have form1 or form2 put it's name into the Tag property of form3. (ex Form3.Tag= "Form1")You can also put the value of Text1 in here, separating the values with a ~ or something. Then, when you want to return, have...
I couldn't find a way to do it either, so I scrapped the idea of using Distiller, and went with PDFWriter instead. If you use Open# on the file c:\windows\system\pdfwritr.ini and use Print# to add the line "PDFFileName= <full path and filename that you want" to the end of it, and then...
Actually, Acrobat does support OLE. It just is very confusing and clumsy. I had this same problem when I started poking into adding Acrobat into my programs. The problem is that you are defining the variable as an object. Normally, this would be fine, but, like I said Acrobat is clumsy. You...
I know this isn't the answer you were looking for, but I ran across a similar problem when writing a VB program for converting files to PDF using PDFWriter for Acrobat 4. There is a file called pdfwritr.ini in the Windows\system folder. If you add the line "PDFFileName =" and then...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.