Creating bookmarks from access(VBA)
Hi all,
Im creating a number of bookmarks from access 2010 via VBA. And it works fine except that the acrobat.exe file still remains in process permanently. Ive found that it is this line bookmarkList = bookmarkRoot.children which causes the acrobat.exe to stay in memory. I hope im missing something fundamental here.If i remove that line, acrobat.exe closes correctly and disappears from the proccess. Ive tried bookmarklist = null(long shot) and Set bookmarkList = Nothing without success. Im hoping someone can guide me in the right direction here Im using acrobat pro X. Can anyone replicate this issue or better yet know how to fix it?
dim bookmarkList as variant
dim objAdobe As Object
dim avDoc As Object
dim PDDoc As Object
dim PDPage As Object
dim JSO As Object
dimBookMarkRoot As Object
Set objAdobe = CreateObject("AcroExch.App")
Set PDDoc = CreateObject("AcroExch.pdDoc")
Set avDoc = CreateObject("AcroExch.avDoc")
pdDoc.open("C:\xxxxx \test.pdf") 'it has one page in it
Set JSO = PDDoc.GetJSObject
Set BookMarkRoot = JSO.BookMarkRoot
BookMarkRoot.createChild "TEST", "", 0
bookmarkList = bookmarkRoot.children'causes acrobat.exe to stay open in task manager(processes), have tried set bookmarkList= Nothing and bookmarkList= null
pdDoc.save(1,'C:\xxxx\test2.pdf')
Set JSO = Nothing
Set PDPage = Nothing
Set avDoc = Nothing
Set BookMarkRoot = Nothing
PDDoc.Close
objAdobe.CloseAllDocs
objAdobe.Exit
Set PDDoc = Nothing
Set objAdobe = Nothing
Regards,
Ingman
Hi,
Thank you for your reply. Im not sure if i understand you correctly. if i want to loop a level of bookmarks. should i not use the .children? just to clarify, above code is just an exemple ive stripped in order to make replication of My case easier. I create about 500 bookmarks in a hierarcy structure depending on the data. So after i create a bookmark i retrieve it from the .children since i need it to create new children. Are There Any other way that i have missed doing this?
Similar Messages
-
Create bookmarks from group tree issue
Hello,
I am the administrator of a calibration software that uses Crystal Reports as it's reporting engine. I currently have Crystal Reports XI Product Version 11.0.0.1282 installed on my computer.
I designed a report last week and when I would export it to a pdf, either through Crystal Reports or through the calibration software, I would have an option allow me to create bookmarks from group tree. It worked great. I then sent this report to our field engineers with instructions on how to run it and no one was able to see the "create bookmarks from group tree" option. Why would this be?
I thought it had something to do with not having the newest version of Crystal Reports so I tried to update the software from Help > Check for Updates. It searched for updates but then timed out and gave me a message that I was not connected to the internet even though I was. I then found my way to this site and downloaded "crxir2_sp4_full_build.exe".
I tried to install this and everything was going good until I was prompted to locate the file CrystalReports.msi. I could browse to any location but by default it was trying to find it in my temporary internet files for my browser. I searched my computer and did not have this file. I checked the CD and found it on there. I copied it from the CD to my hard drive. I tried to run the installation again and when prompted for CrystalReports.msi, I pointed it to the location on my hard drive but the software would not accept it.
I eventually canceled out of the install but every time I would launch Crystal Reports it would prompt me for the same file.
This morning I uninstalled Crystal Reports XI from my machine, rebooted, and reinstalled it. Now when I try to export the report, either through Crystal Reports or through the calibration software, I do not have an option to allow me to create bookmarks from group tree. It has disappeared.
So my questions are:
1. How do I get the "create bookmarks from group tree" option back?
2. How do I get the "create bookmarks from group tree" option to appear on my field engineer's computer when they run the report?
3. Why was I not able to update my software? Was I doing something wrong?
Thanks in advance for the help.I never had version 11.5 installed but I had the create bookmarks option. I had version 11.0 installed and had the create bookmarks option.
I'm still having problems installing Crystal Reports XI R2. It makes it through the entire installation and then a screen pops up telling me that it can not find "CrystalReports.msi". It is looking for this file in a temp file. I use the browse button and point it to the proper file location but it still won't accept it. The only thing I can do is exit out of the installation. Am I doing something wrong? Do I have to do something special to upgrade Crystal Reports? -
Printing from Access VBA in Urdu Language
I have some data in table in Urdu language, I want to print it by putting on LPT1 but when I get data in VBA it converts it into ???????. Urdu language pack is already installed and it's working in all other applications. How can I prevent my data to change
into ?????? while getting it in Access VBA.I assume that "to get the data from the table into VBA" means that you assign a value from a recordset or from a form field that is bount to a recordset to a variable, e.g.,
Dim rs As DAO.Recordset
Dim UrduString As String
Set rs = CurrentDB.OpenRecordset("UrduTable")
UrduString = rs!SomeField
In this assignment, the data in UrduString is not modified in any way, it is completely identical to the data in the table.
However, if you look at it in the VBA Editor, e.g. with
Debug.Print UrduString
it displays as ???????. This is because of a limitation in the VBA Editor: It cannot properly *display* the contents of the Urdu string, allthough VBA correctly *stores* this content.
What do you mean by "putting the data on LPT1"? Something like
Open "LPT1:" For Binary Access Write As #1
Put #1, , UrduText
You will need to output the text in binary format. If you try to write in text format, it will indeed get transformed from Unicode to ANSI, thus producing the ????.
Matthias Kläy, Kläy Computing AG -
Printing to PDF Writer from Access VBA
I have the printer properties for the Adobe PDF Writer set to use a default output folder on my desktop, and to not prompt for a filename. I have a loop in MS Access VBA that sends about 3000 individual reports to the PDF Writer, one after the next after the next. Each one has a different filename and eventually it prints all my reports. Recently I have been getting an error from MS Access that says "Error 2212. Could not print your report." It stops the print run and I have to reset and pick up where it left off. Sometimes it prints 50 sometimes it prints 2500 before it hits that error. Sometimes it takes 5 or tries to get the job completed. Does anyone have any suggestions as to what may be going on?
Access 2003 SP3 on Windows XP Pro SP3, each upgraded with all MS Windows/Office updates. Adobe Acrobat 7, upgraded to 8, upgraded incrimentally to 8.14
Thank you for any advice. . .
~gabrielYou might also check the two developer forums
Acrobat Scripting Forum http://forums.adobe.com/community/acrobat/acrobat_scripting
Acrobat SDK Developer Forum http://forums.adobe.com/community/acrobat/acrobat_scripting -
Create Bookmarks from Word Styles on Mac
With the noticeable absence of PDFMaker for word on the mac creating bookmarked pdfs from word styles seems to be either impossible or less than straightforward on the Mac platform. Does have a solution for how to do this?
It amazes me that the product is sold for Mac but has reduced functionality. The price is the same as for PC and the customer is not informed about this reduced functionality. This is concerning from a business integrity point of view. Had I known about this reduced functionality, I would not have purchased the software. This does not provide me with any more functionality that the Send to PDF function that comes with Microsoft automatically.
I recommend that Adobe a) Inform purchasers of the product for MAC of this decreased functionality in the process of purchasing, like a warning that the customer must acknowledge and b) reduce the price of the product for MAC as a result of the decreased functionality and c) initiate engineering to correct the problem immediately. Mac's are not going away, they are increasing in popularity, and as such, the software must adapt. Alternatively Adobe should refund the cost of the software.
Concerned customer,
PMcG -
Acrobat won't create bookmarks from level three headings in Word 2003 doc
I’m trying to convert a series of 2003 word docs, each with three levels of headings to .pdf using Acrobat but neither Acrobat nor Word 2010 (which a friend tried for me), could produce bookmarks for heading 3.
Headings 1 and 2 are main standalone headings but Heading three has been applied to the number of each paragraph in the document (the number has been typed in manually at the start of each para) and is on the same line as the first line of text. It is separated from the text by a single tab space. Immediately above the first line of text of each paragraph is a single line of upper case text which gives the name of the file. Normal style has been applied to both the paragraph text and the upper case file names.
Here is how it looks;
THIS IS A QUESTION ABOUT BOOKMARKS
2 We’re so glad to have many friends that we see in the building ---too many to try to mention. I just happened to notice, coming in the door the man that married wife and I together. And we’re glad to have him in with, oh, so many others.
The number “2” above is heading style 3. All three levels of headings will produce an accurate TOC for the document so the problem seems to be that neither Acrobat nor Word 2007 can ‘find’ heading no 3 because it is set between the upper case and paragraph text.
I’m wondering if an MS article (Q285059) I have tried to understand that refers to use of Lead-in Emphasis with Heading styles and Style Separators may provide a solution … but at this point the lingo is over my head.
I have over 1000 similar docs to convert to pdf so any suggestions that might help or even establish that what I’m trying to do is not possible will be very gratefully received.
Audionz1000 docs to convert? That's MISERABLE!
I have the same problem (on a much smaller scale) and will follow this thread to see if someone figures it out. -
How may I print a pdf doc from access vba code
I have a directory of files and I want to send these files to the printer in a specific order (right-clicking in the explorer seems to give an unpredictable order).
I am using the sdk and know how to find the files in the directory, but I can't find any print-method???
Has anybody any code?Thank you!
Yes I have downloaded the SDK and read the documentation, but obviously not good enough (there are a lot of doc. files). Sorry for that!
But I have got into a problem since one year ago....
Looking in the references in Access (2007), I see that the Adobe Acrobat 8.0 Type Libray (Acrobat.tlb) is pointing to my program directory, not to the c:\Program files\Adobe\Acrobat 8.0\Acrobat where the Acrobat.tlb is placed. My program directory does NOT contain this Acrobat.tlb!!!
When I remove and reconnects to the proper directory, it automatically goes back to point to my program directory (where the Access program is).
As a result (?) my Access program stops working when I try to open a pdf-document.
Any ideas what has happended / what to do? -
Adobe 6.0 Pro--PDFs created from multiple PDFs don't have bookmarks from structure?
I'm working with my company's 6.0 Pro (old, I know, but what we've got is what we've got,) on a Windows 7 machine. I've read online that in 6.0, PDFs created from multiple PDFs, by defaut, should have bookmarks from structure that use the original filenames as the bookmark names. I was surprised to read this, because ironically enough this is precisely what I began looking online to see if I could do, and all I could seem to find then were ways to get rid of that function. I don't believe that our installation has been modified in any way, but the binders I'm creating don't automatically have bookmarks from their structure, nor do the bookmarks I'm creating from the structure by menu command have the original file names as their names. Such an automatic bookmark structure w/ that naming scheme would in fact be very helpful in our workflow, as we deal with large volumes of files where outside data paired with file names needs to be one-to-one matched against the actual pdf contents, and opening files individually is time consuming. As of now, when I go to create bookmarks from structure in my document made of multiple pdfs, I have two choices: "Document", which only creates a bookmark to the first page of the whole thing, and "Part," which creates bookmarks to the first pages of all the documents that were combined, with each bookmark named "Part."
We would be satisfied with nameless bookmarks except that the combine feaure is also unreliable. It usually switches the first and last files of the alphabetical order, but not always, meaning that we can't rely on bookmark order to know which file we are looking at once the binder is created.
What I'm hoping to discover is if this behavior for 6.0 Pro is really abnormal and if so, what fixes or workarounds might be available. Thanks.Just to clarify --
"... should have bookmarks from structure ..."
Not true.
If a PDF is tagged then Acrobat Pro can create new Bookmarks from the PDF's structure (from the Bookmark panel's Options menu).
Currently there is no other mechanism for this.
This may change after PDF-2 (ISO 32000-2) is released but that is still out on the timeline.
Just some things to consider.
When combining multiple PDFs into a new, single PDF click on the Options button and tick "Always add bookmarks..."
This should give you the filename. If a PDF has an entry in its "Title" this will be a bookmark nested under the top (filename) bookmark.
Also, when combining PDFs if there is no entry in "Tiltle" expect to see the filename as a bookmark.
It there is an entry for "Title" expect to see the "Title" entry as the bookmark.
What you describe for the elements/tags "Document" and "Part" are consistent with what they are and how they are permitted to be used in a tagged PDF.
(See ISO 32000-1, Section 14.8)
Be well... -
Broken PDF Bookmarks from Word doc with Headings
This used to work with older versions of Acrobat Pro (I have the latest version of Acrobat 8 pro). I just author a Word doc which has headings, and then I use the Acrobat menu in Word to create the PDF, making sure "Create Bookmarks from Word Headings"is selected.
The resulting PDF does indeed have the PDF Bookmarks there correctly, but they do not point to the locations of the headings in the actual document. In other words, they're not really bookmarking anything.
Can someone confirm the workflow that is supposed to ensure the bookmarks will actually point to the heading locations? What else could be wrong?
Thanks in advance! Attaching source word file (rename xml extension to docx) and resulting PDF file.
SKThanks Bill. I am using 8.1.4, and Word 2007. Don't really want to downgrade though (it's been around for several years now). One thing I've been wanting to try is re-installing to the latest PDFMaker COM Add-in (PDFMOfficeAddin.dll), but I don't know how to. The add-remove programs doesn't seem to allow me to re-install individual components.
Just to confirm, the PDF bookmarks are meant to point to the Word heading locations, correct? I was wondering if you could try converting the Word file (just rename the .xml extension to .docx), and looking at the resulting PDF bookmarks. If they work as expected for you, then it's definitely something about my particular system configuration.
The Word headings to PDF bookmarks feature is so basic, and Word 2007 has been around for several years now, if there was a problem with it I'm sure there would be a fix from Adobe by now.
Thanks for any further insights!
SK
PS - Are other people experiencing the issue I am running into? Trying to gauge if this is a common problem... -
Is it possible to automatically create bookmarks from the text that the user types into form fields?
In principle it's possible, but remember that bookmarks can't be added in
Reader. -
Bookmarks from structure - limit on length of text?
I am trying to create bookmarks from structure when converting a WORD 2007 document to pdf. The WORD doc contains headings in Heading 1 format. The first part of this heading appears OK in the bookmark but it is truncated i.e. only the first few dozen characters of the heading appear in the bookmark. Is there any way of increasing the number of characters that appear in the bookmark?
I am using WORD 2007 Adobe 9 Pro extended on Windows XPWhat wizard created items with even-longer names than were already on your page? FYI, items with names longer than 30 characters cannot be used as bind variables but should work otherwise. It's possible that we're binding using those names using one of these new-fangled constructs (like form pagination) and that the exception is being masked. In any case the Builder could be more helpful in this regard.
Scott -
I use windows Vista and I cannot open Firefox under one user account (I keep receiving the "firefox profile cannot be loaded . . ." error message) on my computer so I created another account. How can I transfer the bookmarks from the old account?
NOTE: you can skip this 1st step.
Step 1
I'm on Win7 so the paths might be slightly different... C:\Users\(YOUR PC ACCOUNT)\AppData\Roaming\Mozilla\Firefox\Profiles\bnelgkol.default\bookmarkbackups ... Find the "bookmarks-[DATE].json" you want and copy it to the profile you want. You may want to change the date to a name you will recognize.
Step 2
Then on your browser "Bookmarks>Show All Bookmarks or Ctrl+Shift+B ". This will bring up the Bookmark Organizer, I think they call it Library now. From there click "Import & Back up>Restore" this will bring up a drop down with your back ups. If you followed step 1, find the json you added and select it. If you skipped step 1, from "Import & Back up>Restore" select "Choose File..." Then browser for the json you want to import. Which should be in a similar location as mentioned in step 1.
NOTE: "AppData" is a hidden folder, will have to set show hidden folders to be able to see it. -
Hi all,
Im creating a pdf file with a number of bookmarks in it from Access using VBA. I want each bookmark to refer to a page in the document. Just wanted to confirm that I have understood this correcly. With current functionality I must use javascript to do this i.e this.pageNum=2 when I create the bookmark(createChild under JSObject). There is no possiblity to create it using the "standard" go to page functionality? I want to avoid javascript as much as possible since this functionality can be disabled. Any ideas would be greatly appreciated.
Best Regards,
IngmanI believe so. Or of course someone may already have commercially developed one and is selling it.
Unless you can do something like get from Access to Word, automate adding Word styles, then use PDFMaker to make a PDF with bookmarks from styles. -
hello. my name is brandon. my hp laptop motherboard died 3 days ago. i have put my hard drive into an enclosure to be able to access all my info and files. i have successfully transferred all my files, but I am not sure if, or how i can access all my mozilla bookmarks from my my old hard drive to be able to put onto my new laptop, which is an macbook pro. my bookmarks were crucial to pay bills etc, so any help would be greatly appreciated, brandon
Not familiar with the Mac file structure either but you can transfer the entire content of your Firefox profile replacing entire content of a firefox profile you created on new HD. For me copying over a few files was out of the question all of the files are updated and I wasn't about to reinstall 150+ extensions and set up configurations for everything and to do that for that 20 profiles and .ini file. Except for 3 most didn't have a lot of extensions but it would be rather impossible.
I copied everything from the Mozilla folder down in the user libraries so all my profiles were set, it did something similar for application libraries. -
Hello.
Problem statement is very simple: Firefox will not create bookmarks.
New installation with Mint 17. New PC build with Asus A58M-A/USB3 mother board, AMD A4 6300 processor, 4 gig memory stick.
All of the Mint and Firefox packages are up to date.
A new profile was created for testing, Firefox has been started in safe mode, purged and re-installed and reset to defaults. None of these actions have helped.
Here is the info from the Troubleshooting Information within Firefox
Application Basics
Name: Firefox
Version: 33.0
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0
Multiprocess Windows: 0/1
Crash Reports for the Last 3 Days
All Crash Reports
Extensions
Name: Mint Search Enhancer
Version: 1.0
Enabled: true
ID: [email protected]
Name: Stylish
Version: 1.0.7
Enabled: true
ID: {46551EC9-40F0-4e47-8E18-8E5CF550CFB8}
Graphics
Adapter Description: X.Org -- Gallium 0.4 on AMD ARUBA
Device ID: Gallium 0.4 on AMD ARUBA
Driver Version: 3.0 Mesa 10.1.3
GPU Accelerated Windows: 0/1 Basic
Vendor ID: X.Org
WebGL Renderer: X.Org -- Gallium 0.4 on AMD ARUBA
windowLayerManagerRemote: false
AzureCanvasBackend: cairo
AzureContentBackend: cairo
AzureFallbackCanvasBackend: none
AzureSkiaAccelerated: 0
Important Modified Preferences
browser.cache.disk.capacity: 358400
browser.cache.disk.smart_size.first_run: false
browser.cache.frecency_experiment: 3
browser.places.smartBookmarksVersion: 7
browser.sessionstore.upgradeBackup.latestBuildID: 20141013200257
browser.startup.homepage_override.buildID: 20141013200257
browser.startup.homepage_override.mstone: 33.0
dom.mozApps.used: true
extensions.lastAppVersion: 33.0
media.gmp-gmpopenh264.lastUpdate: 1416067922
media.gmp-gmpopenh264.version: 1.1
media.gmp-manager.lastCheck: 1416067922
network.cookie.prefsMigrated: true
places.history.expiration.transient_current_max_pages: 80569
plugin.disable_full_page_plugin_for_types: application/pdf
privacy.sanitize.migrateFx3Prefs: true
Important Locked Preferences
JavaScript
Incremental GC: true
Accessibility
Activated: false
Prevent Accessibility: 0
Library Versions
NSPR
Expected minimum version: 4.10.7
Version in use: 4.10.7
NSS
Expected minimum version: 3.17.1 Basic ECC
Version in use: 3.17.1 Basic ECC
NSSSMIME
Expected minimum version: 3.17.1 Basic ECC
Version in use: 3.17.1 Basic ECC
NSSSSL
Expected minimum version: 3.17.1 Basic ECC
Version in use: 3.17.1 Basic ECC
NSSUTIL
Expected minimum version: 3.17.1
Version in use: 3.17.1
Experimental Features
What other information can I provide?
Thank you.
JimYou can check for problems with the <b>places.sqlite</b> database file in the Firefox profile folder.
*http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
*https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
*Places Maintenance: https://addons.mozilla.org/firefox/addon/places-maintenance/
Maybe you are looking for
-
D:\dzbat\bin>genpdf D:\dzbat\bin>javadoc -doclet com.sun.tools.doclets.mif.MIFDoclet -docletpath d:\ mifdoclet1.2\lib\mifdoclet.jar -J-Xmx20M -batch dzbatcher -print pdf -d d:\lsmap isericsson\docs -sourcepath d:\lsmapisericsson com.mahindrabt.lsm Lo
-
Java - InputStream - Weird Characters in the Output!
Hi, I have a software which outputs lines of numbers one by one. In another java program, I use BufferedReader as follows: BufferedReader input = new BufferedReader(new InputStreamReader(pr.getInputStream(),"US-ASCII")); where pr is the process which
-
Previous editions of Firefox had an arrow at the right side of the url window of a tab so you could see where you'd been in that tab before--where is it now?
-
Analytic Function: comparison is not working
Dear Experts, I've got a Product table: - Name - Version - Status I want all the products with: - a SOLD version n - and at least a NONSOLD n+i version In fact I only want the Name and Version for the NONSOLD. I tried the following request but the (p
-
Transferred cost centers are not showing up in 0FIAA_C04
Hello gurus.. Recently, in a data maintenance, 3 new cost centers (cc) were move from one company to another. Those cc are not showing up in the infocube 0FIAA_C04; even though I have re-loaded the master data for 0ASSET, 0ASSET_AFAB and 0DEPRAREA a