Really Appreciate Help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Good morning,

I am using the MODI activex control to view tifs. It works great and I can
see multiple page tifs with one exception - the control is 2" x 2" on the
screen and changing the properties to 8.5" x 11" doesn't work. I even tried
changing it in VBA which would seem to work then hang.

Private Sub Form_Current()
Me![MiDocView1].Width = 8.5
Me![MiDocView].Height = 11
Me![MiDocView1].FileName = Me![ImageName]
Me![MiDocView1].FitMode = 3
End Sub

Does anyone know what I am doing wrong or have suggestions? Your help is
really appreciated.

Thanks.
 
First I would never place code in the Current event to resize an ActiveX
control. Place it in the form's Load event instead.
To programmatically resize the control you have to remember that you are
working with TWIPS(1440 per inch). Make sure your underlying form is sized
to handle a control of this size.
Me![MiDocView1].Width = 8.5 * 1440

Finally, I do not remember ever having the sizing issues you describe. I
might try deleting and reinserting the control.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Hi Stephen,

Thanks so much for taking the time. I deleted the control and resized it
immediately before doing anything else and its working like a dream. I can
now view multipage tifs in the form.

I am having another issue though if you can help me. I am trying to code a
command button on the form that will click to the second page of the current
document in the Modi viewer. I am returning how many pages there are with
the NumPages property and trying to set the PageNum to 2 (after verifying
that there are two pages and that I am on page one) but it clicks and goes
nowhere. I have downloaded the MS documentation for the MODI control but
don't see what I am doing wrong.

Any help is appreciated. Thanks.

Bonnie

Stephen Lebans said:
First I would never place code in the Current event to resize an ActiveX
control. Place it in the form's Load event instead.
To programmatically resize the control you have to remember that you are
working with TWIPS(1440 per inch). Make sure your underlying form is sized
to handle a control of this size.
Me![MiDocView1].Width = 8.5 * 1440

Finally, I do not remember ever having the sizing issues you describe. I
might try deleting and reinserting the control.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


Bonnie said:
Good morning,

I am using the MODI activex control to view tifs. It works great and I
can
see multiple page tifs with one exception - the control is 2" x 2" on the
screen and changing the properties to 8.5" x 11" doesn't work. I even
tried
changing it in VBA which would seem to work then hang.

Private Sub Form_Current()
Me![MiDocView1].Width = 8.5
Me![MiDocView].Height = 11
Me![MiDocView1].FileName = Me![ImageName]
Me![MiDocView1].FitMode = 3
End Sub

Does anyone know what I am doing wrong or have suggestions? Your help is
really appreciated.

Thanks.
 
Hi Stephen,

Just a note to let you know I figured it out. We are now viewing multi page
tifs, conveniently moving through pages and keying from image. One funny
things is happening if you have a thought - after I view an image and go back
in to the form, try to review the image - I don't see it. After leaving
Access and re-opening, I can again view the image. Have you any idea.

Thanks for your help.

Bonnie

Stephen Lebans said:
First I would never place code in the Current event to resize an ActiveX
control. Place it in the form's Load event instead.
To programmatically resize the control you have to remember that you are
working with TWIPS(1440 per inch). Make sure your underlying form is sized
to handle a control of this size.
Me![MiDocView1].Width = 8.5 * 1440

Finally, I do not remember ever having the sizing issues you describe. I
might try deleting and reinserting the control.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


Bonnie said:
Good morning,

I am using the MODI activex control to view tifs. It works great and I
can
see multiple page tifs with one exception - the control is 2" x 2" on the
screen and changing the properties to 8.5" x 11" doesn't work. I even
tried
changing it in VBA which would seem to work then hang.

Private Sub Form_Current()
Me![MiDocView1].Width = 8.5
Me![MiDocView].Height = 11
Me![MiDocView1].FileName = Me![ImageName]
Me![MiDocView1].FitMode = 3
End Sub

Does anyone know what I am doing wrong or have suggestions? Your help is
really appreciated.

Thanks.
 
Bonnie said:
Hi Stephen,

Just a note to let you know I figured it out. We are now viewing multi page
tifs, conveniently moving through pages and keying from image. One funny
things is happening if you have a thought - after I view an image and go back
in to the form, try to review the image - I don't see it. After leaving
Access and re-opening, I can again view the image. Have you any idea.

Thanks for your help.

Bonnie

Stephen Lebans said:
First I would never place code in the Current event to resize an ActiveX
control. Place it in the form's Load event instead.
To programmatically resize the control you have to remember that you are
working with TWIPS(1440 per inch). Make sure your underlying form is sized
to handle a control of this size.
Me![MiDocView1].Width = 8.5 * 1440

Finally, I do not remember ever having the sizing issues you describe. I
might try deleting and reinserting the control.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


Bonnie said:
Good morning,

I am using the MODI activex control to view tifs. It works great and I
can
see multiple page tifs with one exception - the control is 2" x 2" on the
screen and changing the properties to 8.5" x 11" doesn't work. I even
tried
changing it in VBA which would seem to work then hang.

Private Sub Form_Current()
Me![MiDocView1].Width = 8.5
Me![MiDocView].Height = 11
Me![MiDocView1].FileName = Me![ImageName]
Me![MiDocView1].FitMode = 3
End Sub

Does anyone know what I am doing wrong or have suggestions? Your help is
really appreciated.

Thanks.
 
Hi bonnie,
I have the same problem and I figure out that in a way lock any image that
loads and even if you change the .filename, the image remane open (and
locked). I can not find a way to load the same image again. Pls tell me how
you fix the problem?

Bonnie said:
Hi Stephen,

Just a note to let you know I figured it out. We are now viewing multi page
tifs, conveniently moving through pages and keying from image. One funny
things is happening if you have a thought - after I view an image and go back
in to the form, try to review the image - I don't see it. After leaving
Access and re-opening, I can again view the image. Have you any idea.

Thanks for your help.

Bonnie

Stephen Lebans said:
First I would never place code in the Current event to resize an ActiveX
control. Place it in the form's Load event instead.
To programmatically resize the control you have to remember that you are
working with TWIPS(1440 per inch). Make sure your underlying form is sized
to handle a control of this size.
Me![MiDocView1].Width = 8.5 * 1440

Finally, I do not remember ever having the sizing issues you describe. I
might try deleting and reinserting the control.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


Bonnie said:
Good morning,

I am using the MODI activex control to view tifs. It works great and I
can
see multiple page tifs with one exception - the control is 2" x 2" on the
screen and changing the properties to 8.5" x 11" doesn't work. I even
tried
changing it in VBA which would seem to work then hang.

Private Sub Form_Current()
Me![MiDocView1].Width = 8.5
Me![MiDocView].Height = 11
Me![MiDocView1].FileName = Me![ImageName]
Me![MiDocView1].FitMode = 3
End Sub

Does anyone know what I am doing wrong or have suggestions? Your help is
really appreciated.

Thanks.
 
Hi VK,

Sorry to say I have not fixed the locked file issue yet. When it happens I
have been closing the program and reopening it. That releases the lock but
of couse that's not a real solution. Let me know please if you find a
solution. The issue I did fix was how to view multi-page tifs with the MODI.


Thanks.

v.k. said:
Hi bonnie,
I have the same problem and I figure out that in a way lock any image that
loads and even if you change the .filename, the image remane open (and
locked). I can not find a way to load the same image again. Pls tell me how
you fix the problem?

Bonnie said:
Hi Stephen,

Just a note to let you know I figured it out. We are now viewing multi page
tifs, conveniently moving through pages and keying from image. One funny
things is happening if you have a thought - after I view an image and go back
in to the form, try to review the image - I don't see it. After leaving
Access and re-opening, I can again view the image. Have you any idea.

Thanks for your help.

Bonnie

Stephen Lebans said:
First I would never place code in the Current event to resize an ActiveX
control. Place it in the form's Load event instead.
To programmatically resize the control you have to remember that you are
working with TWIPS(1440 per inch). Make sure your underlying form is sized
to handle a control of this size.
Me![MiDocView1].Width = 8.5 * 1440

Finally, I do not remember ever having the sizing issues you describe. I
might try deleting and reinserting the control.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


Good morning,

I am using the MODI activex control to view tifs. It works great and I
can
see multiple page tifs with one exception - the control is 2" x 2" on the
screen and changing the properties to 8.5" x 11" doesn't work. I even
tried
changing it in VBA which would seem to work then hang.

Private Sub Form_Current()
Me![MiDocView1].Width = 8.5
Me![MiDocView].Height = 11
Me![MiDocView1].FileName = Me![ImageName]
Me![MiDocView1].FitMode = 3
End Sub

Does anyone know what I am doing wrong or have suggestions? Your help is
really appreciated.

Thanks.
 
Hi bonnie

I am actually working with vb6 but we are using the same object. Well, I
realize that when I run the program and stop it using the exit button in my
form (code: unload me) then it works. Only when I am using the end button
from the design mode the tiff file remains locked and does not work for ever
unless I exit the vb environment. That means that the users who always close
the program with a proper way, will not have the same problem. Unfortunately,
that does not work with MS Access and I can not still found a way to unlock
the locked property. I’ll let you know if I have further news.

P.S. Sorry for my english. Hope You can understand what I am trying to say.


Bonnie said:
Hi VK,

Sorry to say I have not fixed the locked file issue yet. When it happens I
have been closing the program and reopening it. That releases the lock but
of couse that's not a real solution. Let me know please if you find a
solution. The issue I did fix was how to view multi-page tifs with the MODI.


Thanks.

v.k. said:
Hi bonnie,
I have the same problem and I figure out that in a way lock any image that
loads and even if you change the .filename, the image remane open (and
locked). I can not find a way to load the same image again. Pls tell me how
you fix the problem?

Bonnie said:
Hi Stephen,

Just a note to let you know I figured it out. We are now viewing multi page
tifs, conveniently moving through pages and keying from image. One funny
things is happening if you have a thought - after I view an image and go back
in to the form, try to review the image - I don't see it. After leaving
Access and re-opening, I can again view the image. Have you any idea.

Thanks for your help.

Bonnie

:

First I would never place code in the Current event to resize an ActiveX
control. Place it in the form's Load event instead.
To programmatically resize the control you have to remember that you are
working with TWIPS(1440 per inch). Make sure your underlying form is sized
to handle a control of this size.
Me![MiDocView1].Width = 8.5 * 1440

Finally, I do not remember ever having the sizing issues you describe. I
might try deleting and reinserting the control.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


Good morning,

I am using the MODI activex control to view tifs. It works great and I
can
see multiple page tifs with one exception - the control is 2" x 2" on the
screen and changing the properties to 8.5" x 11" doesn't work. I even
tried
changing it in VBA which would seem to work then hang.

Private Sub Form_Current()
Me![MiDocView1].Width = 8.5
Me![MiDocView].Height = 11
Me![MiDocView1].FileName = Me![ImageName]
Me![MiDocView1].FitMode = 3
End Sub

Does anyone know what I am doing wrong or have suggestions? Your help is
really appreciated.

Thanks.
 
I understand you fine VK. The only time it's a problem for my users is if
they go out of the form and browse the records (which I allow). I would
really like to fix it but I got busy putting out some other fires. I'll let
you know if I get back to it and find a fix and I would appreciate it if you
let me know if you find a fix also.

Thanks,
Bonnie

v.k. said:
Hi bonnie

I am actually working with vb6 but we are using the same object. Well, I
realize that when I run the program and stop it using the exit button in my
form (code: unload me) then it works. Only when I am using the end button
from the design mode the tiff file remains locked and does not work for ever
unless I exit the vb environment. That means that the users who always close
the program with a proper way, will not have the same problem. Unfortunately,
that does not work with MS Access and I can not still found a way to unlock
the locked property. I’ll let you know if I have further news.

P.S. Sorry for my english. Hope You can understand what I am trying to say.


Bonnie said:
Hi VK,

Sorry to say I have not fixed the locked file issue yet. When it happens I
have been closing the program and reopening it. That releases the lock but
of couse that's not a real solution. Let me know please if you find a
solution. The issue I did fix was how to view multi-page tifs with the MODI.


Thanks.

v.k. said:
Hi bonnie,
I have the same problem and I figure out that in a way lock any image that
loads and even if you change the .filename, the image remane open (and
locked). I can not find a way to load the same image again. Pls tell me how
you fix the problem?

:

Hi Stephen,

Just a note to let you know I figured it out. We are now viewing multi page
tifs, conveniently moving through pages and keying from image. One funny
things is happening if you have a thought - after I view an image and go back
in to the form, try to review the image - I don't see it. After leaving
Access and re-opening, I can again view the image. Have you any idea.

Thanks for your help.

Bonnie

:

First I would never place code in the Current event to resize an ActiveX
control. Place it in the form's Load event instead.
To programmatically resize the control you have to remember that you are
working with TWIPS(1440 per inch). Make sure your underlying form is sized
to handle a control of this size.
Me![MiDocView1].Width = 8.5 * 1440

Finally, I do not remember ever having the sizing issues you describe. I
might try deleting and reinserting the control.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


Good morning,

I am using the MODI activex control to view tifs. It works great and I
can
see multiple page tifs with one exception - the control is 2" x 2" on the
screen and changing the properties to 8.5" x 11" doesn't work. I even
tried
changing it in VBA which would seem to work then hang.

Private Sub Form_Current()
Me![MiDocView1].Width = 8.5
Me![MiDocView].Height = 11
Me![MiDocView1].FileName = Me![ImageName]
Me![MiDocView1].FitMode = 3
End Sub

Does anyone know what I am doing wrong or have suggestions? Your help is
really appreciated.

Thanks.
 
Well, if the users exit the form for browse the records try this:

Private Sub Form_Unload(Cancel As Integer)
MiDocView1.FileName = ""
End Sub

this works for me with a very small MS Access program I just did. But you
have to be sure that they exit the form unless is necessary the form to be
open. I this case I am trying to find a way

Hope this be helpful


Bonnie said:
I understand you fine VK. The only time it's a problem for my users is if
they go out of the form and browse the records (which I allow). I would
really like to fix it but I got busy putting out some other fires. I'll let
you know if I get back to it and find a fix and I would appreciate it if you
let me know if you find a fix also.

Thanks,
Bonnie

v.k. said:
Hi bonnie

I am actually working with vb6 but we are using the same object. Well, I
realize that when I run the program and stop it using the exit button in my
form (code: unload me) then it works. Only when I am using the end button
from the design mode the tiff file remains locked and does not work for ever
unless I exit the vb environment. That means that the users who always close
the program with a proper way, will not have the same problem. Unfortunately,
that does not work with MS Access and I can not still found a way to unlock
the locked property. I’ll let you know if I have further news.

P.S. Sorry for my english. Hope You can understand what I am trying to say.


Bonnie said:
Hi VK,

Sorry to say I have not fixed the locked file issue yet. When it happens I
have been closing the program and reopening it. That releases the lock but
of couse that's not a real solution. Let me know please if you find a
solution. The issue I did fix was how to view multi-page tifs with the MODI.


Thanks.

:

Hi bonnie,
I have the same problem and I figure out that in a way lock any image that
loads and even if you change the .filename, the image remane open (and
locked). I can not find a way to load the same image again. Pls tell me how
you fix the problem?

:

Hi Stephen,

Just a note to let you know I figured it out. We are now viewing multi page
tifs, conveniently moving through pages and keying from image. One funny
things is happening if you have a thought - after I view an image and go back
in to the form, try to review the image - I don't see it. After leaving
Access and re-opening, I can again view the image. Have you any idea.

Thanks for your help.

Bonnie

:

First I would never place code in the Current event to resize an ActiveX
control. Place it in the form's Load event instead.
To programmatically resize the control you have to remember that you are
working with TWIPS(1440 per inch). Make sure your underlying form is sized
to handle a control of this size.
Me![MiDocView1].Width = 8.5 * 1440

Finally, I do not remember ever having the sizing issues you describe. I
might try deleting and reinserting the control.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


Good morning,

I am using the MODI activex control to view tifs. It works great and I
can
see multiple page tifs with one exception - the control is 2" x 2" on the
screen and changing the properties to 8.5" x 11" doesn't work. I even
tried
changing it in VBA which would seem to work then hang.

Private Sub Form_Current()
Me![MiDocView1].Width = 8.5
Me![MiDocView].Height = 11
Me![MiDocView1].FileName = Me![ImageName]
Me![MiDocView1].FitMode = 3
End Sub

Does anyone know what I am doing wrong or have suggestions? Your help is
really appreciated.

Thanks.
 
Using this way (miDocView1.FileName = "") you give a new parameter to your
object and you realise the last document opened. So It does not remain
locked. I am looking forward for the result!

Bonnie said:
I understand you fine VK. The only time it's a problem for my users is if
they go out of the form and browse the records (which I allow). I would
really like to fix it but I got busy putting out some other fires. I'll let
you know if I get back to it and find a fix and I would appreciate it if you
let me know if you find a fix also.

Thanks,
Bonnie

v.k. said:
Hi bonnie

I am actually working with vb6 but we are using the same object. Well, I
realize that when I run the program and stop it using the exit button in my
form (code: unload me) then it works. Only when I am using the end button
from the design mode the tiff file remains locked and does not work for ever
unless I exit the vb environment. That means that the users who always close
the program with a proper way, will not have the same problem. Unfortunately,
that does not work with MS Access and I can not still found a way to unlock
the locked property. I’ll let you know if I have further news.

P.S. Sorry for my english. Hope You can understand what I am trying to say.


Bonnie said:
Hi VK,

Sorry to say I have not fixed the locked file issue yet. When it happens I
have been closing the program and reopening it. That releases the lock but
of couse that's not a real solution. Let me know please if you find a
solution. The issue I did fix was how to view multi-page tifs with the MODI.


Thanks.

:

Hi bonnie,
I have the same problem and I figure out that in a way lock any image that
loads and even if you change the .filename, the image remane open (and
locked). I can not find a way to load the same image again. Pls tell me how
you fix the problem?

:

Hi Stephen,

Just a note to let you know I figured it out. We are now viewing multi page
tifs, conveniently moving through pages and keying from image. One funny
things is happening if you have a thought - after I view an image and go back
in to the form, try to review the image - I don't see it. After leaving
Access and re-opening, I can again view the image. Have you any idea.

Thanks for your help.

Bonnie

:

First I would never place code in the Current event to resize an ActiveX
control. Place it in the form's Load event instead.
To programmatically resize the control you have to remember that you are
working with TWIPS(1440 per inch). Make sure your underlying form is sized
to handle a control of this size.
Me![MiDocView1].Width = 8.5 * 1440

Finally, I do not remember ever having the sizing issues you describe. I
might try deleting and reinserting the control.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


Good morning,

I am using the MODI activex control to view tifs. It works great and I
can
see multiple page tifs with one exception - the control is 2" x 2" on the
screen and changing the properties to 8.5" x 11" doesn't work. I even
tried
changing it in VBA which would seem to work then hang.

Private Sub Form_Current()
Me![MiDocView1].Width = 8.5
Me![MiDocView].Height = 11
Me![MiDocView1].FileName = Me![ImageName]
Me![MiDocView1].FitMode = 3
End Sub

Does anyone know what I am doing wrong or have suggestions? Your help is
really appreciated.

Thanks.
 
Thanks VK. I may be wrong but I think I tried that. I'll try it again.

v.k. said:
Using this way (miDocView1.FileName = "") you give a new parameter to your
object and you realise the last document opened. So It does not remain
locked. I am looking forward for the result!

Bonnie said:
I understand you fine VK. The only time it's a problem for my users is if
they go out of the form and browse the records (which I allow). I would
really like to fix it but I got busy putting out some other fires. I'll let
you know if I get back to it and find a fix and I would appreciate it if you
let me know if you find a fix also.

Thanks,
Bonnie

v.k. said:
Hi bonnie

I am actually working with vb6 but we are using the same object. Well, I
realize that when I run the program and stop it using the exit button in my
form (code: unload me) then it works. Only when I am using the end button
from the design mode the tiff file remains locked and does not work for ever
unless I exit the vb environment. That means that the users who always close
the program with a proper way, will not have the same problem. Unfortunately,
that does not work with MS Access and I can not still found a way to unlock
the locked property. I’ll let you know if I have further news.

P.S. Sorry for my english. Hope You can understand what I am trying to say.


:

Hi VK,

Sorry to say I have not fixed the locked file issue yet. When it happens I
have been closing the program and reopening it. That releases the lock but
of couse that's not a real solution. Let me know please if you find a
solution. The issue I did fix was how to view multi-page tifs with the MODI.


Thanks.

:

Hi bonnie,
I have the same problem and I figure out that in a way lock any image that
loads and even if you change the .filename, the image remane open (and
locked). I can not find a way to load the same image again. Pls tell me how
you fix the problem?

:

Hi Stephen,

Just a note to let you know I figured it out. We are now viewing multi page
tifs, conveniently moving through pages and keying from image. One funny
things is happening if you have a thought - after I view an image and go back
in to the form, try to review the image - I don't see it. After leaving
Access and re-opening, I can again view the image. Have you any idea.

Thanks for your help.

Bonnie

:

First I would never place code in the Current event to resize an ActiveX
control. Place it in the form's Load event instead.
To programmatically resize the control you have to remember that you are
working with TWIPS(1440 per inch). Make sure your underlying form is sized
to handle a control of this size.
Me![MiDocView1].Width = 8.5 * 1440

Finally, I do not remember ever having the sizing issues you describe. I
might try deleting and reinserting the control.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


Good morning,

I am using the MODI activex control to view tifs. It works great and I
can
see multiple page tifs with one exception - the control is 2" x 2" on the
screen and changing the properties to 8.5" x 11" doesn't work. I even
tried
changing it in VBA which would seem to work then hang.

Private Sub Form_Current()
Me![MiDocView1].Width = 8.5
Me![MiDocView].Height = 11
Me![MiDocView1].FileName = Me![ImageName]
Me![MiDocView1].FitMode = 3
End Sub

Does anyone know what I am doing wrong or have suggestions? Your help is
really appreciated.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top