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 29-06-2012, 10:28
BlackNight BlackNight is offline
Junior Member
 
Join Date: Jun 2012
Posts: 10
Default Not allow saving of cdr file.

I am opening a cdr file from a vb.net widows app. Under certain circumstances I need the document to be opened as read only. I know I can set the file attribute to read only, but would prefer a way to do it through CorelDraw. My question. Is there a way to open a document as read only / and or a way to not allow the user to change the document or at least not save the document.

The code works with X3, X4, X5

Thanks
Reply With Quote
  #2  
Old 02-07-2012, 17:34
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

Hi.
Unfortunately no. Once the user has the file open, providing he/she isn't using a trial version of Draw, there is no way to stop them from saving, exporting, or copying to clipboard.
~John
Reply With Quote
  #3  
Old 03-07-2012, 07:05
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

HI BlackNight.
As an after thought thiscould be added inot a future version of CorelDraw itself. Many others have asked for a copy protection feture in Draw.

Some ideas about implementing might be:

1) Passworded locked items. Beside the normal lock method you could have a password lock for shapes. When password locked the item would not be saved, allowed to be copied to clipboard, exported,, etc.
Example: If a document was saved that contained a password locked item then the document, when opened later, would not include the locked item.

2) Documents can be saved as viewable only. When this option is checked, while saving the reopened document will bring up a prompt in Draw. The prompt might say, "You are opening a document that is marked as viewable only. Many features of Draw will be disabled until document is closed. Continue?". Draw will go into viewable only mode. Some tools that are left available would be the zoom tools.

~John
Reply With Quote
  #4  
Old 03-07-2012, 07:33
shark shark is offline
Senior Member
 
Join Date: Aug 2010
Location: Russia, Belgorod
Posts: 146
Default

You can try to intercept system event Document_QuerySave(Cancel As Boolean). If ActiveDocument.Name =/<> YourFile then Cancel = true/false
Reply With Quote
  #5  
Old 05-07-2012, 10:25
BlackNight BlackNight is offline
Junior Member
 
Join Date: Jun 2012
Posts: 10
Default

Thanks guys..
Reply With Quote
  #6  
Old 22-08-2012, 15:20
jemmyell jemmyell is offline
Senior Member
 
Join Date: Jan 2005
Location: Orange County, California, USA, Earth, Solar System, Milky Way Galaxy
Posts: 157
Default

Hi,

You can't use events for this. The events can be disabled with a macro or a button push on the toolbar.

Corel now has a content protection system that is used in X6.1 - will they share this with third parties via the Object Model?

-James
__________________
-James Leonard
CNC Inlay Guy - www.CorelDRAWCadCam.com
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
saving file from an unstable session of corel draw terenteml General 7 22-10-2012 17:05
Saving with incremental filename nic CorelDRAW/Corel DESIGNER VBA 5 22-01-2012 01:13
Saving Icons knowbodynow CorelDRAW/Corel DESIGNER VBA 9 02-04-2007 20:23
Saving File while auto generating Jpg files vindaa Macros/Add-ons 16 03-01-2007 19:44
X3 Workspace - Not Saving dungbtl General 3 11-06-2006 04:55


All times are GMT -5. The time now is 12:35.


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