Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21297

Opening pdf into pic box

$
0
0
I have a program, i've been developing for a couple weeks, and now what i'm trying to do is to pull a pdf into a pic box, it works somewhat, however when i end the program, the program freezes, and closes, all work is lost if not saved. I've narrowed it down to the AcroPDF1 control, in the pic box, when i remove it all is good. I s there some other code i need,to unload the control, from it's hold on something, i've never done this before...

If you need more code, it's a little large, but i could post it, it's cool program, that i use to display messages on 4 50 TV's, in our shop, for people to see.
It does actually work, yhis is a small piece of the code, there's more to go along with it, any ideas would be greatfull.

Below is the standard code i'm using, to load the PDF.
****************************************************************
With AcroPDF1
.Container = MainDisplayScreen.ScrollBoxPic
.LoadFile App.Path & "\Active Screen Files\SCRAP COST 2012.pdf"
.gotoFirstPage
.Move 1, 1, MainDisplayScreen.ScrollBoxPic.Width, MainDisplayScreen.ScrollBoxPic.Height
.setPageMode ("none")
.Visible = True

End With

Viewing all articles
Browse latest Browse all 21297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>