473,703 Members | 2,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Member Not Found

swb
Hi - I have a simple project that manipulates Adobe Illustrator that works
fine at home on Windows XP Pro (with admin login), but gives me an error
(error message and source code below) at work with Windows Pro 2000 (user
login). I'm a novice, so I'm pulling my hair out trying to figure out why I
get "Member not found" still. What I've checked:

- Same version of Illustrator on both machines (v10)
- Same version of .NET on both machines (v1.1)
- Gave the assembly (both .exe and .dll) full rights with .NET Configuration
utility (at work)
- Made sure Interop.Illustr ator.dll is in same directory as app (as you can
see, the error message says it's loaded)

I don't think it's a security issue as the app does run, does load
Illustrator and does create a new document. But like I said, it works
perfectly fine at home.

Thanks for your help in advance!

Cliff

----------------------------------------------------------
ERROR MESSAGE AT WORK:
----------------------------------------------------------
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Runtime. InteropServices .COMException (0x80020003): Member not found.
at System.RuntimeT ype.ForwardCall ToInvokeMember( String memberName,
BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
msgData)
at Illustrator._Br ushes.RemoveAll ()
at PrintFinalPdf.F inal_PDF.PrintP df(String strPubChoice)
at PrintFinalPdf.F inal_PDF.Valida teInput()
at PrintFinalPdf.F inal_PDF.btnPri nt_Click(Object sender, EventArgs e)
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons
button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.288
CodeBase:
file:///c:/winnt/microsoft.net/framework/v1.0.3705/mscorlib.dll
----------------------------------------
PrintFinalPdf
Assembly Version: 1.0.1486.28950
Win32 Version: 1.0.1486.28950
CodeBase:
file:///C:/Documents%20and %20Settings/cliffb/Desktop/Trader%20Tools/PrintFin
alPdf.exe
----------------------------------------
System.Windows. Forms
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.288
CodeBase:
file:///c:/winnt/assembly/gac/system.windows. forms/1.0.3300.0__b77 a5c561934e
089/system.windows. forms.dll
----------------------------------------
System
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.288
CodeBase:
file:///c:/winnt/assembly/gac/system/1.0.3300.0__b77 a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.288
CodeBase:
file:///c:/winnt/assembly/gac/system.drawing/1.0.3300.0__b03 f5f7f11d50a3a/sy
stem.drawing.dl l
----------------------------------------
Microsoft.Visua lBasic
Assembly Version: 7.0.3300.0
Win32 Version: 7.00.9502
CodeBase:
file:///c:/winnt/assembly/gac/microsoft.visua lbasic/7.0.3300.0__b03 f5f7f11d5
0a3a/microsoft.visua lbasic.dll
----------------------------------------
Interop.Illustr ator
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:
file:///C:/Documents%20and %20Settings/cliffb/Desktop/Trader%20Tools/Interop.
Illustrator.DLL
----------------------------------------
************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this application
or machine (machine.config ) must have the jitDebugging value set in the
system.windows. forms section. The application must also be compiled with
debugging enabled. For example: <configuratio n>
<system.windows .forms jitDebugging="t rue" /> </configuration> When JIT
debugging is enabled, any unhandled exception will be sent to the JIT
debugger registered on the machine rather than being handled by this dialog.

----------------------------------------------------------
SOURCE CODE (I omitted the Windows Form generated code):
----------------------------------------------------------
Public Class Final_PDF
Inherits System.Windows. Forms.Form
Private Sub btnPrint_Click( ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles btnPrint.Click
ValidateInput()
End Sub
Sub ValidateInput()
txtDtp.Focus()
If Not IsNumeric(txtDt p.Text) = True Then
MsgBox("Please enter a DTP number.", MsgBoxStyle.Exc lamation,
"Warning")
txtDtp.Focus()
txtDtp.SelectAl l()
ElseIf lbxPub.Selected Item = "-----------------------" Then
MsgBox("Please choose a publication.", MsgBoxStyle.Exc lamation,
"Warning")
Else
PrintPdf(lbxPub .SelectedItem.T oString)
End If
End Sub
Sub PrintPdf(ByVal strPubChoice As String)
'launch illustrator and create preferences
Dim appRef As New Illustrator.App lication()
Dim docRef As Illustrator.Doc ument
Dim rulerPrefs As Illustrator.AiR ulerUnits =
Illustrator.AiR ulerUnits.aiUni tsPoints
Dim alertPrefs As Illustrator.AiU serInteractionL evel
Dim colorPrefs As Illustrator.AiC olorModel
Dim savePrefs As Illustrator.AiS aveOptions
Dim printPrefs As Illustrator.AiP ostScriptLevel
rulerPrefs = Illustrator.AiR ulerUnits.aiUni tsPoints
colorPrefs = Illustrator.AiC olorModel.aiPro cess
alertPrefs = Illustrator.AiU serInteractionL evel.aiDontDisp layAlerts
savePrefs = Illustrator.AiS aveOptions.aiDo NotSaveChanges
'create new document
docRef = appRef.Document s.Add
'remove unused materials
docRef.Swatches .RemoveAll()
docRef.Symbols. RemoveAll()
docRef.Patterns .RemoveAll()
docRef.ArtStyle s.RemoveAll()
docRef.Brushes. RemoveAll()
'determine pdf path
Dim pdfPath As String
Dim pubChoice As String
Select Case strPubChoice
Case "REG GLOSS"
pdfPath = "\\work\path\1\ "
pubChoice = "pub1"
Case "REG GUTS"
pdfPath = "\\work\path\2\ "
pubChoice = "pub2"
Case "NHG GLOSS"
pdfPath = "\\work\path\3\ "
pubChoice = "pub3"
Case "NHG GUTS"
pdfPath = "\\work\path\4\ "
pubChoice = "pub4"
End Select
'create pdf info text
Dim pdfInfo As Illustrator.Tex tArtItem
pdfInfo = docRef.TextArtI tems.Add
pdfInfo.Content s = "FINAL PDF | DTP: " & txtDtp.Text & " |
PUBLICATION: " & pubChoice
pdfInfo.Left = 24
pdfInfo.Top = 768
'create date text
Dim dateText As Illustrator.Tex tArtItem
dateText = docRef.TextArtI tems.Add
dateText.Left = 465
dateText.Top = 768
dateText.Conten ts = Today().ToShort DateString & " | " &
Now().ToShortTi meString
'create placed dtp art
Dim pdfFullPath As String = pdfPath & txtDtp.Text & ".pdf"
Try
Me.Hide()
docRef.GroupIte ms.CreateFromFi le(pdfFullPath)
docRef.PrintOut () 'False was the option
'docRef.Close(s avePrefs)
Catch
MsgBox("The file " & pdfFullPath & " does not exist." & vbCrLf & "Make sure
the PDF was processed and the DTP is correct.", MsgBoxStyle.Exc lamation,
"Warning")
'docRef.Close(s avePrefs)
End Try
Me.Close()
End Sub
Private Sub btnExit_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles btnExit.Click
Me.Close()
End Sub
Private Sub mnuMainFileExit _Click(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles mnuMainFileExit .Click
Me.Close()
End Sub
Private Sub txtDtp_Enter(By Val sender As System.Object, ByVal e As
System.EventArg s) Handles txtDtp.Enter
txtDtp.SelectAl l()
End Sub
End Class
Jul 17 '05 #1
0 3452

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
1675
by: Gianni Mariani | last post by:
While digging for a work around for a VC++7.1 compiler bug I came to find an interesting thing about pointer to member conversions. struct A { int a; }; struct B : A
1
3551
by: Saeed Amrollahi | last post by:
Dear All C++ Programmers Hello I am Saeed Amrollahi. I am a software engineer in Tehran Sewerage Company. I try to use std::map and map::find member function. I use Visual Studio .NET. my program uses two MFC classes: CRect and CPoint which represents Rectangle and Point concepts (as usual) and a user
10
6687
by: Adam Warner | last post by:
Hi all, With this structure that records the length of an array of pointers as its first member: struct array { ptrdiff_t length; void *ptr; };
1
2217
by: Kai-Uwe Bux | last post by:
Hi folks, I would like to know which clause of the standard rules out this: template < typename eval > struct recursive_template { typedef typename eval::enum_type Enum;
1
4042
by: tshad | last post by:
I have a collection class(exChain), for my Exception log which is getting the following error: *************************************************************************** No default member found for type 'ExceptionLog'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details:...
0
2325
by: meetmaruthi | last post by:
Hai i am searching a database (in ms access ) to validate user info.it has two fields username and password. here is the coding and i get compile error:Method or data member not found.please help Private Sub Command1_Click() Set ch = ADODB.Recordset Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\Microsoft Visual Studio\sruniep\ssp\db\user.mdb;Mode=ReadWrite|Share Deny None;Persist Security...
2
2515
by: Carlos Rodriguez | last post by:
I have the following function in C#public void Undo(IDesignerHost host) { if (!this.componentName.Equals(string.Empty) && (this.member != null)) { IContainer container1 = (IContainer) host.GetService(typeof(IContainer)); IComponent component1 = container1.Components; PropertyInfo info1 = component1.GetType().GetProperty(this.member.Name);
1
7585
by: pheres | last post by:
Hi, I'm trying to pass pointers to member functions around in my code. The test with pointers to non-member function works fine: Code: void callOut( void (*callback)() ) { callback();
5
4656
by: Tim Frink | last post by:
Hi, I'm experimenting with function pointers and found two questions. Let's assume this code: 1 #include <iostream> 2 class A; 3 4 //////////////////////////////////////////// 5 class B
0
8654
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9234
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8941
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6575
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5910
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4412
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3107
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2406
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2037
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.