Print Page | Close Window

setlayeroptional

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=325
Printed Date: 19 May 24 at 9:04AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: setlayeroptional
Posted By: alungwyther
Subject: setlayeroptional
Date Posted: 19 Feb 06 at 9:40AM

Hi

I am am having some problems with layers.
I have the following in my program

Result = .NewOptionalContentGroup "1"
LayerID = .GetOptionalContentGroupID (1)
Result = .SetOptionalContentGroupVisible(LayerID, 0)
Result = .SetLayerOptional(LayerID)

It works OK until the .SetLayerOptional statement which returns a 0, The OptionalContentGroupID parameter was not valid.
The ID must be valid as the .SetOptionalContentGroupVisible statement works fine.
I have also tried using the ID returned by .NewOptionalContentGroup but get the same results.
All help much appreciated.



-------------
Best Regards
Alun Gwyther



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk