Rafael1119

All,

Is it a known issue that the Form Region text boxes and labels cut off the text and change the font size automatically

Has anyone figured out a way to make the form regions look exactly as they did when you designed them

Thanks,

Rafael



Re: Visual Studio Tools for Office Form Region display issue

Ji Zhou C MSFT

Hi Rafael,

In my side, it works well. Text of button in Outlook Form Region appears exactly as I design them to be.

Make sure you set the AutoSize property to 0(false). This property only appears in advanced property dialog.

Thanks

Ji






Re: Visual Studio Tools for Office Form Region display issue

Rafael1119

Thanks Ji!

Two things:

1. Does the form region look the same when you edit it In my case, all objects change font size and get all out of wack, position changes, etc.

2. Do you know if I send the form region and the manifest file to another user if I would be able to see information they enter on custom properties/fields using the same form region on my PC

Thanks,

Rafael





Re: Visual Studio Tools for Office Form Region display issue

Sue Mosher - Outlook MVP

Form regions are designed to scale automatically. This means that they should always be designed on a machine with the screen resolution set to 96 dpi. I'd guess that your screen resolution when you designed the regions was set to something else.



Re: Visual Studio Tools for Office Form Region display issue

Rafael1119

I was using my Vista machine to do form development and all these troubles went away when I started using XP on a VM.

Any thoughts on deploying Form Regions in an Exchange 2003 environment for remote users

Thanks Sue.

Rafael





Re: Visual Studio Tools for Office Form Region display issue

Sue Mosher - Outlook MVP

Form regions are strictly client-side applications. Exchange has no client-side deployment features. You'd deploy an add-in using regions to remote users the same way you'd deploy any other new software to those folks.



Re: Visual Studio Tools for Office Form Region display issue

Rafael1119

Sue/All,

My form region is a seperate page extension to my appointment form. What I want to do is create a meeting invite and enter additional info that only people with the form region can view.

I've done the following:

1. Created Add-In project and added my Form Region to it

2. Install on my workstation

3. Had two users install on their workstations (installed fine)

4. User1 sent me a meeting invite but no data was retained on the form region when I open the meeting invite (is this intended )

Here is the FormRegionHookup code I'm using from a walkthrough I found in msdn (I think):


Imports System.Runtime.InteropServices
Imports Outlook = Microsoft.Office.Interop.Outlook
Imports Microsoft.Vbe.Interop.Forms
Imports System.Windows.Forms


<ComVisible(True), _
Guid("88F7BFBE-7666-4a0c-BCFD-2740E6625E04"), _
ProgId("FormRegionAddIn.FormRegionHookup"), _
ClassInterface(ClassInterfaceType.AutoDual)> _
Public Class FormRegionHookup
Implements Outlook.FormRegionStartup
Private FormRegion As Outlook.FormRegion
Private userForm As UserForm
Private OlkTextBox2 As Outlook.OlkTextBox
Private WithEvents CommandButton1 As Outlook.OlkCommandButton

' Returns FormRegion.ofs from the resource collection of the current Addin project.
Public Function GetFormRegionStorage( _
ByVal FormRegionName As String, _
ByVal Item As Object, _
ByVal LCID As Integer, _
ByVal FormRegionMode As Outlook.OlFormRegionMode, _
ByVal FormRegionSize As Outlook.OlFormRegionSize) As Object _
Implements Outlook.FormRegionStartup.GetFormRegionStorage
Application.DoEvents()
Select Case FormRegionName
Case "MeetingDetails"
Dim ofsBytes As Byte()
ofsBytes = My.Resources.MeetingDetails
Return ofsBytes
Case Else
Return Nothing
End Select
End Function

' Maps the fields you defined in the FormRegionHookup class to controls on the form region
Public Sub BeforeFormRegionShow( _
ByVal FormRegion As Outlook.FormRegion) _
Implements Outlook.FormRegionStartup.BeforeFormRegionShow
Me.FormRegion = FormRegion
Me.userForm = FormRegion.Form

Try
'OlkTextBox2 = userForm.Controls.Item("OlkTextBox2")
'CommandButton1 = userForm.Controls.Item("CommandButton1")
Catch ex As Exception
MessageBox.Show(ex.ToString())
End Try
End Sub

Public Function GetFormRegionManifest( _
ByVal formRegionName As String, _
ByVal LCID As Integer) As Object _
Implements Outlook.FormRegionStartup.GetFormRegionManifest
Throw New Exception("The method or operation is not implemented.")
End Function
Public Function GetFormRegionIcon( _
ByVal formRegionName As String, _
ByVal LCID As Integer, _
ByVal icon As Outlook.OlFormRegionIcon) As Object _
Implements Outlook.FormRegionStartup.GetFormRegionIcon
Throw New Exception("The method or operation is not implemented.")
End Function
' Handles a click on the button of our form region
Private Sub CommandButton1_Click() Handles CommandButton1.Click
'MessageBox.Show(OlkTextBox2.Text)
Dim myOLApp As New Outlook.Application
Dim myExpl As Outlook.Explorer = myOLApp.ActiveExplorer
Dim x As Integer
Dim Item As Outlook.AppointmentItem
For x = 0 To myExpl.Selection.Count
Item = myExpl.Selection.Item(x)
MessageBox.Show("Meeting Duration: " & Item.Duration)
Next
myOLApp = Nothing
myExpl = Nothing
x = Nothing
Item = Nothing


End Sub


End Class

Any thoughts

Thanks,

Rafael





Re: Visual Studio Tools for Office Form Region display issue

Sue Mosher - Outlook MVP

What exactly are you seeing -- the region and no data or no region at all In your region design, is the data entry control bound to an Outlook custom property

Also, a statement like this should never appear in an Outlook add-in:

Dim myOLApp As New Outlook.Application

Instead, you should always use the Outlook.Application object that the add-in architecture exposes through ThisAddin.





Re: Visual Studio Tools for Office Form Region display issue

Rafael1119

The region appears fine but no data is displayed. I have 15 properties in the form region including checkboxes, texboxes, and one combo box all bound to custom fields/properties I've created.

Thanks,

Rafael





Re: Visual Studio Tools for Office Form Region display issue

Sue Mosher - Outlook MVP

If you open the item in design mode and look on the All Fields page, are the custom properties there, and do they contain data

Are these meeting requests being sent within an Exchange organization or to POP3/IMAP4 recipients





Re: Visual Studio Tools for Office Form Region display issue

Rafael1119

No data displayed in design mode. Some users are in Exchange connected mode and some of us like me use RPC/HTTP to connect to Exchange with and without VPN connectivity.





Re: Visual Studio Tools for Office Form Region display issue

Sue Mosher - Outlook MVP

Sounds like you're all using Exchange connectivity.

Please clarify what you're seeing in design mode. Are the data fields there and blank Or are the data fields missing under "User properties in this item"

FWIW, I've never trusted anything to do with customized meeting requests.





Re: Visual Studio Tools for Office Form Region display issue

Rafael1119

All data fields are there but they are empty.



Re: Visual Studio Tools for Office Form Region display issue

Sue Mosher - Outlook MVP

That tells you this may not be a form region issue. Check the outgoing item in your Sent Items folder for the same information -- is it showing data in the fields Do you see any different behavior if you add the field definitions manually to the Sent Items folder



Re: Visual Studio Tools for Office Form Region display issue

Rafael1119

I sent a meeting request to someone and the data is not showing on the sent items. However, I noticed that the form region I have is associated with the IMP.Appointment form and the form that goes out from what I can tell is IPM.Schedule.Meeting.Request.

You think this may have something to do with it

Rafael