Hi Everyone,
I have a form with two fields, Title and Path. I'm also using the pdf.ocx
and have a OLE object in my form. In code for "On Current" I have the
following:
On Error Resume Next
Dim strPath As String
strPath = Me.Path
Pdf2.src = strPath
When I first open the form, my first record is displayed correctly, however,
when I go to my next record, the OLE Frame just goes blank. Any ideals?
This little program will act as a PDF database and viewer, I just hated
having to open each PDF to see it's contents.
Thanks,
Kevin 3 7235
Im not sure that I understand correctly, but you say you have two fields
(title, path) but I only see you using one of those two fields to assign to
the source of your pdf ocx control. Maybe you need something like
'add
strTitle = Me.Title 'or whatever field holds title
'change from
Pdf2.src = strPath
to
Pdf2.src = strPath & strTitle
Just a thought.
Mike Krous
"Kevin Baker" <sh******@cox.net> wrote in message
news:6jQxb.10064$dO2.4369@lakeread03... Hi Everyone,
I have a form with two fields, Title and Path. I'm also using the pdf.ocx and have a OLE object in my form. In code for "On Current" I have the following:
On Error Resume Next Dim strPath As String
strPath = Me.Path Pdf2.src = strPath
When I first open the form, my first record is displayed correctly,
however, when I go to my next record, the OLE Frame just goes blank. Any ideals?
This little program will act as a PDF database and viewer, I just hated having to open each PDF to see it's contents.
Thanks, Kevin
For troubleshooting, I'd recommend losing the On Error Resume Next statement. If you have
an error, you'll never know about it with that line of code included.....
________________________________
"Mike Krous" <m.krous@nospam_comcast.net> wrote in message
news:Tu********************@comcast.com...
Im not sure that I understand correctly, but you say you have two fields
(title, path) but I only see you using one of those two fields to assign to
the source of your pdf ocx control. Maybe you need something like
'add
strTitle = Me.Title 'or whatever field holds title
'change from
Pdf2.src = strPath
to
Pdf2.src = strPath & strTitle
Just a thought.
Mike Krous
________________________________
"Kevin Baker" <sh******@cox.net> wrote in message
news:6jQxb.10064$dO2.4369@lakeread03...
Hi Everyone,
I have a form with two fields, Title and Path. I'm also using the pdf.ocx
and have a OLE object in my form. In code for "On Current" I have the
following:
On Error Resume Next
Dim strPath As String
strPath = Me.Path
Pdf2.src = strPath
When I first open the form, my first record is displayed correctly, however, when I go to
my next record, the OLE Frame just goes blank. Any ideals?
This little program will act as a PDF database and viewer, I just hated
having to open each PDF to see it's contents.
Thanks,
Kevin
Good Eye Tom! I missed that one!
Mike
"Tom Wickerath" <AO***********************@comcast.net> wrote in message
news:rf********************@comcast.com... For troubleshooting, I'd recommend losing the On Error Resume Next
statement. If you have an error, you'll never know about it with that line of code included.....
________________________________
"Mike Krous" <m.krous@nospam_comcast.net> wrote in message news:Tu********************@comcast.com...
Im not sure that I understand correctly, but you say you have two fields (title, path) but I only see you using one of those two fields to assign
to the source of your pdf ocx control. Maybe you need something like
'add strTitle = Me.Title 'or whatever field holds title
'change from Pdf2.src = strPath to Pdf2.src = strPath & strTitle
Just a thought.
Mike Krous
________________________________
"Kevin Baker" <sh******@cox.net> wrote in message news:6jQxb.10064$dO2.4369@lakeread03...
Hi Everyone,
I have a form with two fields, Title and Path. I'm also using the pdf.ocx and have a OLE object in my form. In code for "On Current" I have the following:
On Error Resume Next Dim strPath As String
strPath = Me.Path Pdf2.src = strPath
When I first open the form, my first record is displayed correctly,
however, when I go to my next record, the OLE Frame just goes blank. Any ideals?
This little program will act as a PDF database and viewer, I just hated having to open each PDF to see it's contents.
Thanks, Kevin
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: TG |
last post by:
Dear PHP Group,
I have two forms that are used to collect user information. The first one
takes user inputted values such as fullname, city, address etc. I want these
values to display in the...
|
by: Mark ??;-\) |
last post by:
I would like to display a listing of files on a web page as follows:
If there is only one file: display the section name and then display the
current file.
If there is more than one file (for...
|
by: Carole MacDonald |
last post by:
There have been lots of posts on this topic, but I haven't been able
to apply any of the suggestions to my situation.
I have an .aspx page with a form on it that has several submit buttons
on...
|
by: Robert |
last post by:
Hello Accessors
I have some reports created in Access that are very good for what they do.
However, it seems to me that when you are displaying information you don't
need to print out that a...
|
by: Tomaz Koritnik |
last post by:
Hi
I have many short HTML files stored in a binary stream storage to display
descriptions for various items in application. HTML would be display inside
application using some .NET control or...
|
by: Rich |
last post by:
Hello,
I am trying to use the Reportviewer control. I have been following an
example from the web, and the instructions from the help files on set up a
..rdlc and binding it to the reportviewer...
|
by: David W. Fenton |
last post by:
I've been struggling the last two days with something I thought was
very easy, which is to open a web page with a form on it and
populate the form with data passed in a query string (either POST or...
|
by: pardesiya |
last post by:
Friends,
I am having trouble displaying Japanese text within a textbox (or
anywhere else) in an aspx page with .net 2.0 framework. Initial
default text in Japanese displays perfectly but when I...
|
by: Phil |
last post by:
I thought it would be nice to display some animated GIFs on some of my
forms. I put a PictureBox control on a form, and loaded my GIF file in. It
animates, but not properly. It seems very jerky and...
|
by: =?Utf-8?B?UmljaA==?= |
last post by:
I removed a form and all its associated files (designer, vb, resx) from a
project because I was having a problem with that form. I copied these files
to another folder away from the project...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |