<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : VB6 code for using CopyPageRanges function</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : Sample Code : VB6 code for using CopyPageRanges function]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 08 May 2026 05:56:09 +0000</pubDate>
  <lastBuildDate>Sun, 20 Sep 2009 11:27:40 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=1219</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[VB6 code for using CopyPageRanges function : Small snippet of VB6 code for...]]></title>
   <link>http://www.quickpdf.org/forum/vb6-code-for-using-copypageranges-function_topic1219_post5615.html#5615</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1000">Rowan</a><br /><strong>Subject:</strong> 1219<br /><strong>Posted:</strong> 20 Sep 09 at 11:27AM<br /><br /><span ="Apple-style-span" style="font-family: M&#111;naco; line-height: normal; white-space: pre-wrap; "><div><span ="Apple-style-span" style="font-family: Arial; font-size: 13px; white-space: pre; ">Small snippet of VB6 code for using CopyPageRanges function:</span></div><div><br></div><div>---------------------------</div>Private Sub btnCopyPageRanges_Click()Dim ClassNameDim LicenseKeyDim FileNameClassName = "QuickPDFAX0716.PDFLibrary"LicenseKey = "..." 'SET YOUR LICENSE KEY HERE...FileName = "C:\Program Files\Quick PDF Library\Quick PDF Library 7.16 Reference Guide.pdf"Dim QPDim ResultDim FromDocumentIDDim ToDocumentIDSet QP = CreateObject(ClassName)Result = QP.UnlockKey(LicenseKey)    If Result = 1 Then        ' Load file to copy pages from    Call QP.LoadFromFile(FileName)    ' Get document ID of loaded file    FromDocumentID = QP.SelectedDocument()    ' Create new document to copy pages to and get document id    ToDocumentID = QP.NewDocument()    ' Select document to copy pages to    Call QP.SelectDocument(ToDocumentID)    ' Copy pages from the first document to the second document (which has already been selected)    Call QP.CopyPageRanges(FromDocumentID, "10,15,18-20,25-35")    ' Delete the first page in the new document as it is a blank page    Call QP.DeletePages(1, 1)    ' Save the (already selected) new document to disk    Call QP.SaveToFile("C:\PagesCopied.pdf")Else    MsgBox "Invalid license key. Please set your license key by editing this file."End IfEnd Sub</span><div><font ="Apple-style-span" face="M&#111;naco"><span ="Apple-style-span" style="line-height: normal; white-space: pre-wrap;">---------------------------</span></font></div>]]>
   </description>
   <pubDate>Sun, 20 Sep 2009 11:27:40 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/vb6-code-for-using-copypageranges-function_topic1219_post5615.html#5615</guid>
  </item> 
 </channel>
</rss>