02-09-2012, 10:43 AM | #451 | |
Enthusiast
Posts: 25
Karma: 10000
Join Date: Jan 2012
Device: kindle
|
Quote:
we will need to encapsulate them in a class associated to the ActiveDocument and instanced on Open/Document New. We will also need to recover the correct set at the start off each Public Macro accessible trough the UI. I'll convert some Sub to Function, to hide them in the Macros Dialog Then For the function we can assume the current document variables is still correct. A side benefit is that, in any case of code Reset, the macros will still work. The previous code required to save and open again. |
|
02-09-2012, 12:54 PM | #452 | |||
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
Quote:
If not have you searched your registry, if not look for "calibre" and see if you find a similar path. =X= |
|||
Advert | |
|
02-09-2012, 04:21 PM | #453 | |
Enthusiast
Posts: 25
Karma: 10000
Join Date: Jan 2012
Device: kindle
|
Quote:
It's the version downloaded from within Calibre (calibre-0.8.38.msi) It's certainly doesn't look like a thumb drive install (which is a ZIP IIRC). I had searched the registry a few day ago There are lots of reference to that path in the registry, but nothing I believe to be reliable (the old path is also present alongside it or the registry path where found may not be stable across versions/installs) I searched again, and it remains the same The best Match I Have is [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Installer\UserData\S-1-5-18\Components\02A5DE04D71355652BEA0CF8766245DA] "73CAA41DCF834544C9CE3BDC8061234C"="C:\\Progra m Files (x86)\\Calibre3\\calibre.exe" But S-1-5-18 is probably user dependent and 02A5DE04D71355652BEA0CF8766245DA installer dependent... Last edited by Gauthier; 02-09-2012 at 04:31 PM. |
|
02-14-2012, 11:41 AM | #454 |
Junior Member
Posts: 3
Karma: 10
Join Date: Feb 2012
Device: none
|
Hi can anyone tell me where I'm going wrong. I download the zipfile for Windows 2003 (i.e. not 2007). I open it and get zilch. Just a normal new document template. I've tried adding the template but I still don't get any buttons etc as shown in the picture on page 1 of this thread.
Help |
02-14-2012, 02:30 PM | #455 | |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
Also do you have macros disabled -- (BookCreator is a template with macros so you must allow macros to run)? Last if the answer to the two questions is yes. Can you post a screen capture here to see what exactly you are (not) seeing. Something else to try is right clicking on the toolbar and look for the menus "BookCreator" and "BookCreatorEBook". Sometimes the macros do not enable the menus and they have to be manually enabled. =X= Last edited by =X=; 02-15-2012 at 02:07 AM. Reason: Added more troubleshooting |
|
Advert | |
|
02-16-2012, 08:00 AM | #456 |
Enthusiast
Posts: 32
Karma: 58
Join Date: Oct 2009
Location: Manchester, UK
Device: Sony PRS-300
|
Does Bookcreator work with Office Starter? I ask this as I've downloaded the program but when I double click on it all I see is my Word main screen with no changes. I can't find any way of enabling macros and I'm at a bit of a loss. Any help would be much appreciated.
|
02-16-2012, 12:08 PM | #457 | ||
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
Quote:
|
||
02-16-2012, 01:43 PM | #458 |
Enthusiast
Posts: 32
Karma: 58
Join Date: Oct 2009
Location: Manchester, UK
Device: Sony PRS-300
|
Thanks for providing such a useful answer! I may have to buy MS Office...
|
02-17-2012, 06:55 PM | #459 |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
@ Gauthier: Okay so I had some time last night to test the code you suggested in post #445 (link).
A couple things. The "Public const ..." works on 2003 so I'll update both 2003/2007 to use that new syntax. Don't recall why I used set/get. I think that was an old VB habit (dating myself i know). The second part has me concerned, I don't think we want to put everything in the registry, just external and user settings. I see BC having three types of data. Template data, book data, and user performances. User pref should go in the reg. For instance calibre's location, book creation preferences. However template data should be kept in the template. An example is the FIRST_RUN variable. Book data such as publisher, author name, tags should be kept in the document properties data. That said if I'll try to get around to updated the code this weekend and posting the code up to the website you created. =X= |
02-20-2012, 07:24 PM | #460 | |
Enthusiast
Posts: 25
Karma: 10000
Join Date: Jan 2012
Device: kindle
|
Quote:
I've made the dialog non modal and work with multiple independent instance of the form (one per opened book). However, I'm not sure If I'll leave the dialog non modal: It works, but when moving the document between screens, the dialog doesn't follow, that make it awkward. I may try to remove the dialog completely in favor of additional Custom Ribbon Tabs which are docked and follow the document. But I'm not sure if it is really possible. FIRST_RUN doesn't seems to be needed in the 2007/2010 version. It's only real use is in creating the old 2003 menu. Is there any other real template variables? To handle multiple document, I have also totally reworked the Document_New, Document_Open and Document_Close macro along with the init/first run code and migrated that to a DocumentChange event handler and AutoExec and AutoExit macro See a Reference: http://msdn.microsoft.com/en-us/libr...ice.10%29.aspx The Document Change event is also used to switch variables context and invalidate the portions of the CustomUI I made dynamic (and thus refresh them). (Still need to prevent document switch while calibre generation is in progress...) I've also extensively renamed variables and Forms element to stay consistent in the prefix. I'm currently stuck with a bug in vbaLoadPictureGDI which seems to work in excel, but not in word. I intended to use that as cover previewer (it support png images which the standard VB forms image control doesn't). I hope to have something sufficiently stabilized to share the code this Week-End. A side question, is there any interest in those new features: 1 Optionally using the word pdf generator instead of the calibre one. Adding it should not be much work: just import the cover and add a save. 2 Adding a RTF output, same level of work as the PDF with much overlapping. 3 Making the cover optional on a format Basis or when a cover is specified Generate a version with cover and without or a combination thereof. Last edited by Gauthier; 02-20-2012 at 07:52 PM. |
|
02-21-2012, 09:47 AM | #461 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Feb 2012
Device: none
|
Quote:
Thanks for your reply. I have now enabled macros and I now get the toolbars. I have set my macro level to Medium. I have imported a Word 2003 file which has been formatted ready to be converted for Kindle. I selected Inst TOC. I get a message Run time error 5981 Could not open Macro storage. I am logged on with a Microsoft User account as opposed to an Admin account. I feel I am on the cusp of making this work, it's just the macro storage is stopping me. Regards Frank |
|
02-21-2012, 01:47 PM | #462 | |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
Try this zip file and see if it fixes the problem. If it does please let me know so I can update the file on the first post. =X= |
|
02-21-2012, 02:05 PM | #463 | |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
Calibre PDF never did a good job so I'm fine with using the word. However I'd like to add an option in the calibre tab to give the user the option to overide the word PDF and use calibre instead. I'm not opposed to RTF format but I don't see the value of using BookCreator to create an RTF when the user can simply do a "Save As...". Might the value be that the user can bulk create different formats? Another set of features I would like to add to the BookCreator dialog box is the ablility to change the Author name and file name. Right now there is only one layout, and that happens to be my perf. choice. Lastname, Firstname - Book Title I'd like to add a sticky setting that changes the authors name to Firstname Lastname And also swap the Book title and Author name So folks can have their preferred layout Lastname, Firstname - Book Title Firstname Lastname - Book Title Book Title - Lastname, Firstname Book Title - Firstname Lastname |
|
02-21-2012, 08:17 PM | #464 | |
Enthusiast
Posts: 25
Karma: 10000
Join Date: Jan 2012
Device: kindle
|
Quote:
strPublishTo: A String which after substitution of the *var* parts will designate a full save path. Examples: *samedir*\*samename*.*formatext* *samedir*\*publisher*\*title* - *author*.*formatext* *samedir*\*publisher*\*title* - *sortauthor*.*formatext* *formatdir*\*author*\*title* - *author*.*formatext* C:\Users\Gauthier\Documents\Library\*author*\*titl e* - *author*.*formatext* *samedir* Meaning same directory as the word document *samename* Meaning same name as the word document *publisher* Meaning the current word document property 'company' property value *title* Meaning the book title *formatdir* Meaning the a format specific folder (an option for each format) *formatext* Meaning the format extension *y* *m* *d* Meaning creation date parts *author* Meaning the author name as Firstname Lastname *sortauthor* Meaning the author name as Lastname, Firstname Those are inspired by DownThemAll renaming mask feature |
|
02-27-2012, 09:45 AM | #465 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Feb 2012
Device: none
|
Quote:
Regards Frank |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bookcreator | MalcolmFranks | Introduce Yourself | 8 | 10-13-2010 10:49 PM |
BookCreator 3.0 Beta | =X= | Workshop | 43 | 11-21-2009 12:08 AM |
New Update BookCreator v2.6 | =X= | Workshop | 2 | 09-22-2009 06:04 AM |
BookCreator v2.5: Just Released | =X= | Workshop | 0 | 09-28-2008 06:40 PM |
BookCreator v2.0 Released (Book Creating tool) | =X= | Workshop | 1 | 09-15-2008 06:01 PM |