Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, September 30, 2005 12:41:19 PM(UTC)

Travis  
Travis

Groups: Registered, Tech Support
Posts: 207

Was thanked: 3 time(s) in 3 post(s)

This VB.NET example shows how one would empty the RasterImageViewer's Image object.  If the IRasterImage object contains more than one page, RemoveAllPages will remove all pages excluding the IRasterImage itself, so the PageCount will still show 1 page.  To free the object, you set it equal to Nothing. 

Should you call RemoveAllPages when the PageCount equals 1 you will get an error regarding the state of the object.  This is because there are no pages for the function to remove.

How to use this example:

Load up some pages with the load button, then press RemoveAllPages to remove them.  Next load one image, then call RemoveAllPages.  You'll see that my code checks to see if the PageCount is equal to 1.

File Attachment(s):
NET - V14 - RemoveAllPages.zip (581kb) downloaded 171 time(s).
Travis Montgomery
Senior Sales Engineer
LEAD Logo
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, March 27, 2012 11:56:33 PM(UTC)

Ibrahim  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

I've updated this project to use the LEADTOOLS v17.5 in VB.NET using Visual Studio 2008. This project helps you to know how to delete all pages that been loaded by the user.
File Attachment(s):
VBNET_v175_RemoveAllPages.zip (11kb) downloaded 169 time(s).
 
#3 Posted : Tuesday, March 27, 2012 11:57:25 PM(UTC)

Ibrahim  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

The attachment includes the same project that uses LEADTOOLS v17.5 DLLs but in C# using Visual Studio 2008.
File Attachment(s):
CS_v175_RemoveAllPages.zip (15kb) downloaded 172 time(s).
 
#4 Posted : Tuesday, May 23, 2017 1:30:31 PM(UTC)
Duncan Quirk

Groups: Registered, Tech Support, Administrators
Posts: 70

Was thanked: 4 time(s) in 4 post(s)

Updated to to use LEADTOOLS v19 in C# using Visual Studio 2017.
File Attachment(s):
CS_v19_RemoveAllPages.zip (11kb) downloaded 165 time(s).

Duncan Quirk
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.078 seconds.