Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Multipage .Tiff files

Multipage .Tiff files

Scheduled Pinned Locked Moved Visual Basic
graphicshelpquestion
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zulfikar Ali
    wrote on last edited by
    #1

    i am trying to display multi page .tiff file into a pic box. so i have a next button to go to the next page. so far i got this Dim objImage As System.Drawing.Image = objImage.FromFile("C:\Projects\FaxView\appraisal.tif") Dim objGuid As Guid objGuid = (objImage.FrameDimensionsList(0)) Dim objDimension As System.Drawing.Imaging.FrameDimension = New System.Drawing.Imaging.FrameDimension(objGuid) Dim objBmp As System.Drawing.Bitmap With objBmp .FromFile("C:\Projects\FaxView\multipage.tif") .GetFrameCount(objDimension) .SelectActiveFrame(objDimension, 1) End With it is giving me error: object is not set to object reference at .GetFramecount(objDimension) any idea why it is saying that? thanks for your ehlp.:confused: Zulfikar Ali

    Z 1 Reply Last reply
    0
    • Z Zulfikar Ali

      i am trying to display multi page .tiff file into a pic box. so i have a next button to go to the next page. so far i got this Dim objImage As System.Drawing.Image = objImage.FromFile("C:\Projects\FaxView\appraisal.tif") Dim objGuid As Guid objGuid = (objImage.FrameDimensionsList(0)) Dim objDimension As System.Drawing.Imaging.FrameDimension = New System.Drawing.Imaging.FrameDimension(objGuid) Dim objBmp As System.Drawing.Bitmap With objBmp .FromFile("C:\Projects\FaxView\multipage.tif") .GetFrameCount(objDimension) .SelectActiveFrame(objDimension, 1) End With it is giving me error: object is not set to object reference at .GetFramecount(objDimension) any idea why it is saying that? thanks for your ehlp.:confused: Zulfikar Ali

      Z Offline
      Z Offline
      Zulfikar Ali
      wrote on last edited by
      #2

      i figured it out. thanks:-O Zulfikar Ali

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups