OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 15-02-2008, 14:27
bprice's Avatar
bprice bprice is offline
Member
 
Join Date: Oct 2006
Location: Edmundston, New Brunswick, Canada
Posts: 89
Default ThisMacroStorage Commands??

Does anyone know if there is a way under the "CorelDraw X? Objects/This Macro storage" to add PublishToPdf? There are things like DocumentClose , DocumentSave, Quit, ActivateWindow etc. etc... but I want something that runs scripts when I Publish a Document to a PDF! Something that sits around idle until the publishtopdf command is activated and then my script springs into action! Is this possible?


Thanks,
B
Reply With Quote
  #2  
Old 15-02-2008, 16:44
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,770
Blog Entries: 10
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Hmmm.....

Someone smarter than me may say yes, but I do not know of a trigger.

You could however, write your own PublishtoPDF that would include your script, then just add the place this macro as an icon or menu item.

-Shelby
Reply With Quote
  #3  
Old 18-02-2008, 06:08
bprice's Avatar
bprice bprice is offline
Member
 
Join Date: Oct 2006
Location: Edmundston, New Brunswick, Canada
Posts: 89
Default

thats what I was afraid of... that there would be no way! If I could make my own, I would, but I can't because of what needs to be done! I've written my own publishtopdf script before... but this is different! I've got a script thats making a log file of sorts for saved Corel files. It simply writes a text file of the filename, date & time, computer name, etc etc when a corel file is saved. this works fine... but I need it to do the same thing when someone uses publishtopdf. this is going to run on several machines in the office without the user knowing they are being logged... so creating my own script for publishtopdf and putting it on their computer without them noticing anything at all different, would be next to impossible!

and just to clairify, hahaha as this must sound horrible/sneaky the way it's written above, the reason for this is we have a "secret" designer that seems to like to modify peoples drawings, without notifying anyone... which as you can image cause a lot of problems! So we want to be able to catch this said person! hence the reason for a log file of sorts, and the necessity to be discrete!
Reply With Quote
  #4  
Old 18-02-2008, 07:26
ddonnahoe's Avatar
ddonnahoe ddonnahoe is offline
Senior Member
 
Join Date: Jan 2004
Location: Louisville, KY
Posts: 552
Send a message via ICQ to ddonnahoe Send a message via AIM to ddonnahoe Send a message via MSN to ddonnahoe Send a message via Yahoo to ddonnahoe
Default

So then, how do you plan on implementing this macro to the machines? Are all GMS folders pointed to one GMS folder? If you find a way to do this you could tell the entire staff that you have to install a service pack for Draw. No one would be the wiser.
__________________
Sean
Waiting for a ride in the T.A.R.D.I.S.
Reply With Quote
  #5  
Old 18-02-2008, 07:50
bprice's Avatar
bprice bprice is offline
Member
 
Join Date: Oct 2006
Location: Edmundston, New Brunswick, Canada
Posts: 89
Default

our IT guy is just going to stick the gms file in each users gms folder on the computer. it simply collects info in a text file and they'll never "see" it... so he'll just slip the gms remotely, and the next time they run corel it'll be functional! so we don't even have to make the aware that anything has changed!
Reply With Quote
  #6  
Old 18-02-2008, 13:10
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,770
Blog Entries: 10
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Before Save

If the goal is to catch this mystery designer, then why not just embed their username into the file before the save. That way if a designer notices the work is different you can pull the username of the person that last made changes.

Make any sense?

-Shelby
Reply With Quote
  #7  
Old 19-02-2008, 14:45
bprice's Avatar
bprice bprice is offline
Member
 
Join Date: Oct 2006
Location: Edmundston, New Brunswick, Canada
Posts: 89
Default

Hi Shelbym, I'm not too concerned about the save portion of it... as I've got that all taken care of... it's the PublishtoPDF portion.

Here's what happening... we are a large sign shop and we have orders going into the shop for production that have been modified incorrectly! I said "secret designer" earlier... when I should have said "person with corel on their computer that shouldn't be modifing files" as we have some people that aren't "designers" with access to open corel files, but not save.

The problem is, they will open a file, modify it, and do a publishtopdf on their desktop, print the file, and send it into production! Then we can't get anyone to own up to it when the mistake is caught! Unfortunately, these "people" need corel on their machines and we can't remove it! Fortunately, they haven't been provided write access to the server the drawings are stored... but them being able to publish the pdf is still present, and causing problems!

I've been over and over this with everyone in house... remove corel, don't accept prints from project managers, have management talk with them... etc. etc. to no avail! SO... my solution, or attempt to find a solution, has been to create a log file (someday we'll have file management in place and won't have to worry about this problem) that keeps tracks of files saved or published to PDF... I'm just stuck on the Publish to PDF part!

Once this is in place... we have proof that "john doe" is editing files that he /she shouldn't be editing... then maybe some additional steps can be taken from a management position to ensure this person realizes they can't do this anymore!
Reply With Quote
  #8  
Old 19-02-2008, 15:26
ddonnahoe's Avatar
ddonnahoe ddonnahoe is offline
Senior Member
 
Join Date: Jan 2004
Location: Louisville, KY
Posts: 552
Send a message via ICQ to ddonnahoe Send a message via AIM to ddonnahoe Send a message via MSN to ddonnahoe Send a message via Yahoo to ddonnahoe
Default

This might be a solution...
Why not create a save macro the the "designers" use that will create a PDF as well as save the document. Then only allow the "sales staff" access to the PDF (which should have write privileges locked) only.

----------------
Now playing on Pandora: Propellerheads - Spybreak!
via FoxyTunes
__________________
Sean
Waiting for a ride in the T.A.R.D.I.S.
Reply With Quote
  #9  
Old 20-02-2008, 06:14
bprice's Avatar
bprice bprice is offline
Member
 
Join Date: Oct 2006
Location: Edmundston, New Brunswick, Canada
Posts: 89
Default

ah ha! In a perfect world that'd have been the ideal solution... and it's funny you mention that because that is exactly what we did! HOWEVER, certain members of the staff... a number of them, wined and complained till management gave in and gave them all a copy of Corel. The only thing was they didn't have write access to anything. So, it really defeated the purpose of locking anything down... because these people convinced management they NEEDED Corel, even though there was much opposition from the designers. Hence... here we are today trying to create the "log file" so it can be proven to management that these files are being modified, and not by designers! My log file is working perfectly for save… I just wish I could figure out a little trick for making it initialize when someone uses publishtopdf!
Reply With Quote
  #10  
Old 20-02-2008, 07:28
Gadget
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by bprice View Post
… I just wish I could figure out a little trick for making it initialize when someone uses publishtopdf!
I take it you've tried just making a macro to replace the "Publish to PDF" - log the info then run the same command as in the menu.

I just recorded clicking on the "Publish to PDF". Now all I would need to do would be to put it into the "file" menu, change the icon and take out the existing one.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Corel, Options, Customization, Commands, macros, "Separ Rick Randall CorelDRAW/Corel DESIGNER VBA 5 14-05-2009 11:20
File Browsing, listing, choosing and opening Steve CorelDRAW/Corel DESIGNER VBA 12 26-03-2007 23:22
list of VBA commands that work with Corel 13 Mitsu1 CorelDRAW/Corel DESIGNER VBA 3 07-11-2006 22:05
Need update for old Corel Script commands LGD CorelDRAW/Corel DESIGNER VBA 4 12-04-2006 10:55
Autorun / autostart macro Geert CorelDRAW CS 3 03-03-2006 13:13


All times are GMT -5. The time now is 19:39.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com