What is VB6's EventParameters in C#

Hi,
What is VB6's EventParameters equivalent class/method in .NET framework? and how to get the event's parameters in C#.
Thanks,

Hi,
My question is about the equivalence of the properties EventParameters  of VB6's EventInfo class in C#.
In .NET EventInfo class does not contains direct property/method EventParameters
Thanks,
Very few people will remember much about VB6, but the link that Magnus gave you is from Microsoft's guide to VB6 developers so it should help you do what you want in .Net.
Maybe there is no direct equivalent to VB6 EventParameters, I have no idea. I'm sure that whatever it is you are trying to do can be done in .Net although the method of doing it may be different.

Similar Messages

  • Upgrading specific abilities from VB6

    In visual basic 6 the Format event of specific sections is used to run code to achieve out desired functionality, however, I am having difficulty figuring out how to do this in .NET.
    I currently have Crystal Reports for Visual Studio installed and patched to SP9.
    Specifically what was done is the following:
    We retrieved the current page number being sent to the printer using the Report's BeforeFormatPage event (I think we can still do this)
    We then retrieved a value from the section being printed and used it to update data in the database.  We only want the data updated if the page that contains that data is actually sent to the printer.  In one case this is being used for cheque reports as the client wants to track which actual cheques were printed, not those that were displayed in the crystal preview window, to ensure that the cheque number that was printed matches that which is stored in the database.
    In another case the format event is used to load a picture into a report object.  Note that the code supports multiple types including png, tif, ico, or wmf.  It also makes an attempt to proportionally size the image to fit on the report.
    I believe in some cases it resized the control on the report to prevent distortion of the image.
    I see that the report has a FormatSection event, but I am unsure how to use the sectioncode to find the sectionobject being formatted.  I also wonder if this will happen when the specific pages of the document are sent to the printer so as to achieve the same effect we did in VB6.
    I appreciate your assistance with this.
    Thank you,
    Shaggie

    Yes, I figured as much.  The VB6 RDC viewer has limits as well which is why events against the report itself were used such as the Section_Format event.  They were able to be wired up by declaring a section object "WithEvents" and set that new object to the actual section in the report that we needed this event for.  Thankfully it fired when sending each page to the printer so we achieved the desired results - each instance of the section would cause the event to be fired.
    I am just not sure how to do this with .NET.  I see that there is a FormatSection event, but I do not know how to find the exact instance of the section being formatted (essentially like Section X on Page Y - however that may not be valid as there may be no forced page breaks so a section may appear multiple times on a page) as the only thing that event seems to provide in that regard is the SectionCode.
    A property such as ActiveSection would do the required job as long as the event is fired for each section instance.  If it isn't, then we would need another way to accomplish this.  An event on a report object instance could work as well in place of one on the section instance since really what is needed is to read the value, but that probably would not work for loading images.
    I also could find no indication as to when the FormatSection event would be fired (hopefully just like the VB6 event where it would fire both on view and on print if it works like we need it to).
    If Crystal reports can handle loading all of the image types specified previously as well as bmp and jpg files, can have formulas for sizing, and can allow for sizing proportionally such as by providing the image's original size (this is what the VB6 code does) for use in formulas (the VB6 code does the resizing as well) then potentially the loading and sizing could be handled within the report itself.  If not then it would need to be done via code like it is in VB6.  Not all images are done like that, just some of them.
    Like I said before I am also concerned about whether setting or using these new properties programmatically would work with old report files.
    Also I have not yet figured out how to do the rest of that functionality I mentioned previously.
    I am not sure what else to say about them, but please feel free to ask any questions you feel necessary.
    Thank you again,
    Seradex

  • What's verison of measurement studio i can install for vb6.0?

    i am very puzzled what is version of measurement studio i can install for vb6.0
    i have measurement stuido 8.6, but it needs vs 2003, vs 2005 and vs 2008 not vs6.0 which i do not install in my computer, and in my computer there is only vs6.0.
    what can i do for this situation?

    Hi~
    I think the version should be Measurement Studio 6.0. Please refer to the following link.
    http://joule.ni.com/nidu/cds/view/p/id/138/lang/zhs

  • What's the problems of my application (VB6) when i migrate to Oracle

    Hello,
    I have an application written by Visual basic 6.0 and running in SQLserver 2000.
    i prepare for migration to Oracle database 8.1.6.
    what's the problems of my application when i migrate from SQLserver to Oracle?
    Help me please?
    Thanks!
    Chuyen.

    David,
    Thanks for your response.
    Yes, I am running Win2000 Server. I checked Component Services and verified that both Management Server and Agent are processes set in automatic mode and started.
    David, my problem is that logging in to Management Server requires me to enter the Name of the Management Server. What is the "Name" of my Management Server? I don't understand what this means as I do not recall ever being asked to name my Management Server when I installed it.
    The names relevant to my database installation are:
    Host server name: Tower100
    Database name: TOWER
    Service_Name: Tower.LinFamily
    Repository DB Name: TowerRep
    Repository SID: TowerRep
    Are any of these the "Name" of my Management Server?
    I have tried all these names, and they don't seem to work.
    Also, when you say the default account name, do you mean the account "SERVICE" with the default password?
    Tony Lin
    Tony,
    If you installed on Windows then you will want to make sure that the Management Server and Intelligent Agent services are started in the Services Control Panel first.
    Otherwise if you are using a UNIX server, you may need to start the mangement server manually. Here is a script I use to automate the startup process on Solaris:
    http://www.dotcomsolutionsinc.net/products/installgen/sol_901_32bit_files/installgen_sol901_12_.html
    From the Enterprise Manager Console login window you can click on the icon to the right of the Management Server field, click on the Add button, then enter the hostname of the management server to add it.
    If the Management server is running, then you should be able to log in using the default account the first time, then create your administrator accounts.
    David Simpson
    www.dotcomsolutionsinc.net
    (Oracle Replication Consulting & Tools)

  • VB6 - can't save a project with flash.ocx control - why won't Adobe fix?

    After a full day of research, this seems to be an ongling problem for at least a year now.   VB6 developers who have gone in to do maintenance on their applications that call flash.ocx are finding that they can no longer save their projects because of some change that was introduced by Adobe in the release following flash10e.ocx.  In another post here http://forums.adobe.com/message/2931807#2931807 a work around is given of uninstalling flash and installing any version on or before 100452.  Because the applications still run fine until the developer tries to make a change and save the VB6 project, the scope of this problem has probably not been fully realized.  For this reason, this issue will likely only gain momentum in the future.
    I spent the morning contacting several people at Adobe and I discovered the only way apparently to get support for this issue is to open a "web case".   From further research, what I understand a "web case" costs around $200 and with that price there is nothing telling me what comes with a "web case".  I mean, if I were to buy one, would the problem be fixed or would they research it and say "I am very sorry but we are not going to fix that".   If there is a guarantee that the problem will be fixed, then can Adobe establish a pool where the $200 cost can be shared by everyone who has the issue?   That couldn't be more than a buck or two each because if you google this problem "System Error &H80004005 using flash.ocx" you will find about 5 pages of people reporting the problem.
    Microsoft reports that a System Error &H80004005 error can normally be fixed by chaning the OCX in this manner:
    http://support.microsoft.com/kb/223152
    Sounds like Adobe made a slight change to the flash.ocx in the release following 100452 that removed the couple of definitions descibed by Microsoft in the URL above.  All of Microsoft's suggestions for the developer using the bad OCX call fail (simply adding a line to the OCX:
    InitCommonControls(void)
    , however, since the problem (and the answer) is locked deep inside the flash.ocx source code, only Adobe can resolve it.  Let's hope someone reads this and takes action.   In advance - please and thank you Adobe.

    There's little chance anyone from Adobe will see your posting here, though they do on occasion find their way here for reasons unknown.  What you might try is to submit a bug report.  Going that route at least puts it into a system that requires it to be processed... whether or not the processing will lead to a solution that helps you is indeterminable from this end.
    Adobe - Wishlist & Bug Report
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Problem connection to database when opening Crystal Report in VB6 app

    Hi all, first post, so be gentle!
    I've developed a simple app and database using VB6 and SQL Server 2005 and is seems to be working well when i test it.
    Problem i have is after i installed the app on another PC. When the user tries to open the report they get an error when the report tries to connect to the database. It appears the report is trying to connect to the SQL Server using the user's AD account details, yet i set the report up with a trusted connection. I created a replica ODBC connection (as used by me when designing the report) on the users PC to see if that was what was missing. THis was set up to use the generic SQL Server logon details. Unfortubately the report is still trying to connect with the user's AD details.
    I had a bash at creating the VB commands to set the connection settings, but i couldn't get this to work.
    If anyone can help point me in the right direction or show me the correct code/steps to get th connection details correct, i'd be very grateful.
    Here is the code i have in my app:
    (Form1)
    Dim crxApplication As New CRAXDRT.Application
    Public Report As CRAXDRT.Report
    Private Sub cmdRunReport_Click()
    ReportPath = App.Path & "\" & File1.FileName
    If (File1.FileName = "SKU MTM Report - ADR.rpt" Or File1.FileName = "SKU MTM Report - BS100.rpt") Then
        Set Report = crxApplication.OpenReport(ReportPath, 1)
        Report.ParameterFields.Item(1).AddCurrentValue (Trim(DataCombo1.Text))
        Report.ParameterFields.Item(2).AddCurrentValue (Trim(DataCombo2.Text))
        Report.ParameterFields.Item(3).AddCurrentValue (Trim(DataCombo3.Text))
    End If
    frmreports2.Show
    End Sub
    (Form2 with Crystal ActiveX Viewer component)
    Private Sub Form_Load()
    CrystalActiveXReportViewer1.ReportSource = frmReports.Report
    CrystalActiveXReportViewer1.ViewReport
    End Sub
    Thanks in advance for any advice!
    Edited by: James McCaig on Feb 5, 2009 12:39 PM

    Here is an article on how to distribute the runtime using msm files. I think the articles was written in CR 9, but all applies, save the names of the msm files:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/901c0761-cf1d-2b10-dea4-8e83937a9337
    Note that you have to use a utility such as Wise, InstallShield, MS Visual Installer, etc., to create your deployment.
    I have also created a short wiki that describes the msm downloads for each version of CR:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsReportDesignerComponentRuntimeDistribution-Versionspre8.0.xto12.0
    Ludek

  • Launching VB6 Editor after installing Visual Studio 2013 results in "Please wait while Windows configures Microsoft Visual Studio..."

    I have had various versions of Visual Studio installed beside Visual Basic 6.0 Enterprise for some time with no problems, most recently Visual Studio 2012 Premium.
    I recently installed Visual Studio 2013 Premium, and now every time I open VB6 I get a dialog that says "Please wait while Windows configures Microsoft Visual Studio Professional 2013" that shows a progress bar. After it finishes (30 seconds or
    so), it launches again and again and finally VB6 will open. This happens with each instance of VB6, regardless if I've already done it once and never run VS2013 in between.
    If I cancel the dialog, I get this error message in a dialog: "Error 1712. One or more of the files required to restore your computer to its previous state could not be found. Restoration will not be possible." Several more "Please wait"...
    dialogs will appear and if I continue to cancel, eventually I'll get the VB6 editor. It appear to work fine despite the error messages.
    It seems to me that the VS2013 installer flagged some dll's or other files to be rolled back whenever starting VB6. It doesn't appear to be necessary, and I'd like to avoid playing the "Please wait" wack-a-cancel-button game before launching each
    instance of VB6 (or waiting several minutes for no reason). So how do I fix this?
    Note: I've seen something similar happen in Outlook on a different PC when upgrading from 2010 to 2013. The same sort of "Please wait"... dialog would appear each time I opened Outlook. Judging by the "similar" questions that popped up when
    entering this forum post, I'd say this is a general problem with upgrading older versions or installing newer versions of major Microsoft software side-by-side.
    /* Don Reynolds */

    I found the answer!
    I was having the exact same issue, and I was search for a solution and I happened across the following thread: http://social.msdn.microsoft.com/Forums/en-US/f4b0fd38-f4f9-41ea-bd8d-834203a175d2/building-visual-studio-2010-project-triggers-please-wait-while-windows-configures-visual-studio?forum=vssetup&prof=required
    Scroll a small bit down, and there is a post by Barry Wang explaining that you need to use event viewer to find out what is missing. Anyway, I opened event viewer, then open VS 6, then hit refresh in the event viewer (under Windows Logs -> Application)
    and saw a warning message from MsiInstaller. It gave me the following message:
    Detection of product '{9C593464-7F2F-37B3-89F8-7E894E3B09EA}', feature 'Visual_Studio_Professional_x86_enu', component '{E3FF99AA-78B9-4A06-8A74-869E9F65E1FE}' failed.  The resource 'C:\WINDOWS\Microsoft.NET\Framework\URTInstallPath_GAC\' does
    not exist.
    I opened an elevated command prompt, I navigated to the C:\WINDOWS\Microsoft.NET\Framework folder and verified that 'URTInstallPath_GAC' didn't exist, and then I did "md URTInstallPath_GAC".
    Closed and reopened VS 6, and it instantly opened - no "Please wait" message.
    Now this may or may not be the same problem you are having (problem is - I have had it happen on two separate computers now with VS 6 and VS 2013 installed), but it should point you in the right direction. In fact, you should be able to use the Event Viewer
    for anytime the "Please wait" message shows up for any application, and then once there find out what is really missing.

  • Error 1334 (in LabVIEW Run-Time Engine 7.1.1 setup) when launching VB6's IDE

    What's going on here?  I have LabVIEW 7.0 and Visual Basic 6 installed on this Win-XP computer.  When I open VB6, I always get what looks like a Windows Installer error:
    First, it asked me for the location of "lvruntimeeng.msi", which I located for it.  The next progress-window says:
    NI LabVIEW Run-Time Engine 7.11
    Please wait while Windows configures NI LabVIEW Run-Time Engine 7.11
    Finally it fails with this error-message window:
    NI LabVIEW Run-Time Engine 7.11
    Error 1334.  The file 'NIMDFManifestFileId.53736431_DBEC_4582_B072_2F1F0A2C4EA6' cannot be installed because the file cannot be found in cabinet file 'lbruntimeeng_mft'.  This could indicate a network error, an error reading from the CD-ROM, or a problem with this package.
    [OK]
    The two windows repeat twice each time I launch VB6's IDE, and that causes a long delay.  What can I do to prevent this error?
    Message Edited by citizenDAK on 04-23-2008 01:34 PM

    Yes it occurrs every time I launch VB6.
    For a long time now, at least many months.  It's not every day that I need to open good old VB6.  I was hoping it'd just 'go away' but it hasn't.
    I don't know what changes lead up to it.  LOTS of things have been updated, security-patched, etc...  (It is XP.)  I've even un-installed the runtime, then re-installed it when I kept getting the same prompt.  Don't have any idea why, I was hoping you could tell me from the specific file named in the error.  (Google didn't find it for me, and neither did searching ni.com)
    p.s.,  Sorry I left out a decimal and copy/pasted it several times...  should've said "NI LabVIEW Run-Time Engine 7.1.1"

  • VB6 source code cannot connect to Oracle database after compile to file.exe

    Hi All,
    I have a problem about VB6 connect with Oracle database. It can connect as normal when run on VB program. After compiled to file.exe and execute, it cannot connect to Oracle database. What's going on ? Please advise? Thank you.
    Here is sample of my code connection.
    Option Explicit
    Private wsData As New ADODB.Connection
    wsData.ConnectionString = _
    "Provider=MSDAORA.1;User ID=lsp;Password=lsp2007;Data Source=prd01;Persist Security Info=False"
    wsData.Open
    End sub
    Rgads,
    Ats.

    Hi,
    I believe you're in the wrong forum, this forum is for Oracle Application Express.

  • VB6 and Excel loading then unloading immediately

    First off I posted this here
    http://social.msdn.microsoft.com/Forums/office/en-US/4c07879b-e033-4e8f-8266-95f9f606923a/vb6-and-excel-loading-then-unloading-immediately?forum=exceldev However I think this is the right forum for this.
    We have an old VB6 application that uses data from and to Excel 97-2003 XLS and
    Access MDB. This application is slated to be updated to VS2012 and VB.NET. In
    the mean time I have a glitch that I cannot seem to find the issue. When we
    load the VB6 app it opens Excel 2010 in the background for getting and setting
    data. We are set to roll out Office 2010 on everyone’s system and I am still
    unable to find why it works fine on two systems and not on others. With Office
    2007 everything seems to work just fine.
    What happens is when I look at the processes in Task Manager on my Windows 7
    Enterprise edition with Office Professional Plus 2010 system while loading
    the VB6 app I see?
    EXCEL.EXE *32 | "My user name" | 00 CPU | 10,132k | Microsoft Excel
    This is normal and stays in process the entire time I run it on my system. I also have
    this working on another end users system. However the issue and the fix I used
    on our two systems does not seem to work on other systems. I launch the VB6 app
    and it comes up.
    EXCEL.EXE *32 | "My user name" | 00 CPU | 10,132k | Microsoft Excel
    This loads in the processes and then immediately unloads without any errors. Then when I
    execute something that needs to use Excel I get.
    Run-Time error ‘91’:
    Object variable or With block variable not set.
    This only happens if Excel unloads immediately otherwise the program works great. There
    are no events in any of the event logs and our other IT guy said it is loading
    and unloading normally with out crashing.
    I have applied this to the systems http://support.microsoft.com/kb/926430/en-us . In
    all of my searching this looked like the best answer. However only two systems
    are working with Office Professional Plus 2010.
    Here are the references and components.
    References:
    Visual Basic For Applications
    Visual Basic runtime objects and procedures
    Visual Basic objects and procedures
    OLE Automation
    Microsoft DAO 3.6 Object Library
    Microsoft Excel 5.0 Object Library
    Components:
    Controls
    Desaware Animated Button Control
    Microsoft Common Dialog Control 6.0 (SP6)
    Microsoft Data Bound Grid Control 5.0 (SP6)
    Designers
    Dat Environment
    Data Report
    DHTML Page
    WebClass
    Code:
    Public xlApp As Excel.Application
    Public WBSetup As Excel.Workbook
    Public objWbCALC As Excel.Workbook
    Public objShtLEVELS As Excel.Worksheet
    Sub Main()
    ' There is more code here that is not specific to Excel issue
    Set xlApp = Excel.Application
    ' Get the workbook.
    Set objWbCALC = xlApp.Workbooks.Open("c:\temp\Calc.xls")
    Set WBSetup = xlApp.Workbooks.Open("c:\temp\Setup.xls")
    ' Get worksheet
    Set objShtLEVELS = objWbCALC.Worksheets("Levels")
    ' There is more code here that is not specific to Excel issue
    End Sub
    This is working on one system that had Office 2007 and was upgraded to Office 2010. Working on my system with Office 2010. The EXE file is ran from the server you can install it or add the OCX files to local system and register them with regsvr32. No
    new components have been added or changed to the actual VB6 application. It seems to work on two systems and not on other systems.
    However our test system have Office 2010 loaded on it and never had office 2007 on it. Maybe there is a residual left over file on it.
    Any ideas?
    www.ipdg3.com

    Hello,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    I would like to know whether you can get the same issue when you create/load a Visual Basic application rather than VB6 in VS2012. If the issue only occurs when you load VB6 app, as Andrew said, there are other better forums for
    VB6 app provided in this thread:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/6a0719fe-14af-47f7-9f51-a8ea2b9c8d6b/where-to-post-your-vb-6-questions?forum=vbgeneral
    For example:
    VB Forums
    VB City
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Simultaneously Connecting Multiple Tables of the same Database to Textboxes of the same Form using a single ADO Control Code using VB6 Enterprise Edition and MS Access 2007

    Iv 10 Tables consisting of atleast 10 fields each in a single Database. Bt, Im only able to connect 1 table at a time to a form using an ADO Control. Im able to add data from table 'student' to text-boxes in my form. Bt, hw can I add data from field(0) of
    Table 'Student' to Textbox1 and data from field(0) of Table 'Marks' to Textbox2 using VB6??
    This is the current sample coding iv got to connect a single table to a form:
    Global con As New ADODB.Connection
    Global rs As New ADODB.Recordset
    Public Function Connect()
    If con.State = 1 Then con.Close
    con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\bca.mdb;Persist Security Info=False"
    End Function
    Private Sub Add_Click()
    If rs.State = 1 Then rs.Close
    rs.Open "select * from student", con, adOpenDynamic, adLockOptimistic
    rs.AddNew
    rs.Fields(0) = (Text1.Text)
    rs.Fields(1) = (Text2.Text)
    rs.Fields(2) = (Text13.Text)
    rs.Fields(3) = (Text4.Text)
    rs.Fields(4) = (Text5.Text)
    rs.Fields(5) = (Text6.Text)
    rs.Fields(6) = (Text7.Text)
    rs.Fields(7) = (Text8.Text)
    rs.Fields(8) = (Text9.Text)
    rs.Fields(9) = (Text10.Text)
    rs.Fields(10) = (Text11.Text)
    rs.Update
    MsgBox " Record Added"
    End Sub
    What can I do to add fields from 2 different tables to different text boxes within the same form using a single ado control using vb6 and MS Access 2007??

    Hi,
    Since VB6 product is not supported in this forum, you may go to these forums for support:
    #Where to post your VB 6 questions
    http://social.msdn.microsoft.com/Forums/en-US/6a0719fe-14af-47f7-9f51-a8ea2b9c8d6b/where-to-post-your-vb-6-questions
    Thank you for your understanding.
    Best regards,
    Franklin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Object does not match target type when raising an event from c# to VB6

    I have a c# .net DLL that I use from a VB6 app. It exposes an event,
    and the VB6 app is sinking it.
    The VB6 app is receiving the event, as long as it is raised from the
    main thread of the .net DLL.
    I have an aync task being handled inside the DLL (delegate BeginInvoke). Any
    attempt to raise the event from within that thread casuses the reported
    error, even from within the AsyncCallback function, when the thread is ending.
    I noticed that the delegate for the event is not declared inside the
    interface. It's in that module, but above the interface definition:
        [ComVisible(false)]
        public delegate void LoggingEventHandler( string logData );
    The event is declared in the class itself as:
        public class Processor : _Processor
            public event LoggingEventHandler        LogNotification;
    Finally, to raise the event:
    if ( this.Completed != null )
        this.Completed( true );
    If I open the tlb with OLEVIEW, I can see the public event just fine. Of course, I expected to, as it's working up until the helper thread kicks in.
    Now for the REAL WIERD PART! This DOES work on several servers that have
    been in production for months. It's just this one server that it won't work
    on. Same code. Resinstalled/registered it 1,000 times. It took me a while to
    find that an error was even occuring, since it was being raised in the
    seperate thread. In other words, I'm receiving the event just fine on a series of servers. This is a new machine we're trying to bring online. I suspect it's environmental, but I can't figure it out.
    I don't understand why the publisher would be expecting a certain type of
    subscriber in the first place... unless the error is really triggered by the client when the event reaches it. I've put logging into the client, though, and the first line of code inside the event is not being executed.
    For the VB6 app, I reference the tlb file that is automatically created when
    I compile (Interop is checked). I unregistered and re-registered the tlb on
    the server. I regasm'd the dll itself. All dlls are in the same folder - not
    in the GAC.
    The stack trace is as follows:
       at System.RuntimeType.InvokeDispMethod(String name, BindingFlags
    invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32
    culture, String[] namedParameters)
       at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
    Binder binder, Object target, Object[] args, ParameterModifier[] modifiers,
    CultureInfo culture, String[] namedParameters)
       at System.RuntimeType.ForwardCallToInvokeMember(String memberName,
    BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
    msgData)
       at HPFS.Queue.IProcessorEvents.LogNotification(String logData))

    This is driving me nuts!
    I sure would appreciate any suggestions.
    I got this working on one of the two machines. The other machine had some other issues, so I had it re-imaged. It's been so long since I fixed the first one, that I can't remember exactly how I did it. Plus, I did so many things to it over two weeks, that I never really felt confident, anyway. But ... I could *swear* that the last thing I did back then to get this event to flow was to re-register the DLL's TLB.
    So ... This is win 2k with FW 1.1 + SP1.
    Completed is the delagate I'm trying to invoke.
    this.Completed.Target.GetType().Name = "__comobject"
    I've tried everything. Unregistered the .tlb. Unregistered the .net DLL. Verified that the app completely failed while unregistered. Created the TLB using RegAsm /tlb syntax.
    I tried using CLR SPY. It registers nothing. It only lets me pick an EXE. This is a DLL tring to raise to an EXE.
    I've looked at the TLB in OLE VIEW and I just don't know what I'm looking at.
    Is there any other tool or technique I can use to audit/monitor/trap this? .net is giving me *** for details about what's failing. I wish I could somehow debug into exactly what it's trying to do and get more details on the failure.
    Here's the error I'm getting:
    (Code -1) Object does not match target type.<Source:mscorlib>(Stack:    at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
       at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters)
       at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
       at HPFS.Queue.IProcessorEvents.Completed(Boolean success)
       at HPFS.Queue.Processor.RequestDone())
    Processor = the DLL I'm trying to raise the event from.
    IProcessor = the event interface that's exposed through COM.

  • PDF viewer in VB6

    Hello all
    In February 2008 I posted the following :
    It was suggested by lkassuba on the User Community forum that I ask  my question here.
    I am retired, and for my own amusement I am writing a program in VB6  on XP SP3, for part of which I would like to display pdf files in  thumbnails.
    My wife is heavily into crafting, making greetings cards for  birthdays, Xmas etc. She has bought a few cds with various graphics that  she uses for these cards.
    To save having to keep swapping the cds to look for what she wants  to use, which can take quite a time if she doesnt know what she wants, I  have copied them to my hard disk and written a program in VB6 which  allows opening any of these copied cds by either running the exe in the  appropriate folder or opening in ACDSee 6 or Ashampoo Photo Commander 5  for browsing, editing etc.
    She also has things that she uses in pdf files, as well as assorted  knitting and sewing patterns. I thought that it would be nice to bring  these together in my program to allow browsing in the same manner as an  image browser, but using a pdf thumbnail viewer (?) of some sort within  the program so that we could browse through the pdfs when she wants  something that is in one file but we dont know which, and could switch  from graphic to pdf browsing easily and quickly. A browser such as I  have said would at the very least give us an idea of which file to look  at without opening them one after another in Reader.
    I received a reply from Michael_Marden as follows :
    Step 1. To get started, you first need to decide which version you want.  If you only want to view the files, I would suggest that you remove all  older versions of Reader and then install Reader - version 7 or 8.
    Step 2. Within VB - use the Adobe Acrobat ActiveX (COM). 
    (Menu: Project / Add Reference / COM tab / select "Adobe Acrobat 7.0  Browser Control Type Library 1.0" ). IT should show up in your toolbox -  you then drag it from the Toolbox to your form.
    Step 3. VB code - you have access to size it (.Left, .Top, etc),  make it Visible and to Load pdf files. You should now have a pdf file  viewer.
    I'm not sure what you mean by a thumbnail (smaller pdf file?). If  your pdf files are less than 100k, they should load fast enough (< 1  s) to browse easily. You will need to organize the database of files for  efficient searches or browsing.
    For various reasons I have not had the opportunity to look into this again until now. Please accept my apologies if I upset anyone
    by not thanking them for their replies.
    Thumbnail - display more than one pdf file in small areas on a VB form.
    From the above :
    Step 1. I have only Reader 9 on my pc.
    Step 2. Project/Add Reference does not have a COM tab. Select Adobe Acrobat 7.0 Browser Control Type Library 1.0 and confirm.
    Does not show on toolbar.
    Sep 3. Tried the following code :
    Dim ss As New AcroPDF (also I have tried AcroPDFLib and AcroPDFLib.AcroPDF in this declaration.
    ss.LoadFile ("c:\Program Files\VCOM\PowerDesk\PD6_manual.pdf")
    Executing this code leads to a dialog stating
    Run time error '429';
    ActiveX component can't create object
    at the LoadFile line.
    The program in which I want to use this viewer will only ever be on my pc and will only be used a few times a year for birthday and Xmas
    cards, so any purchase is not an option.
    Can anyone help, or can what I want not be done ?
    TIA
    Stuart

    Thanks for the reply.
    I did forget to mention that I am now trying this under Windows 2000 Professional SP4 and VB6 SP5.
    Also I made a mistake in my previous post, I have Reader 7 on my pc, not 9.
    Adobe Acrobat Browser Control type Library 1.0 (AcroPDF.dll) can only be added to the project as a reference,
    not as a component. Project - Component does not list this. I tried selecting Project - Components - Browse.
    I then browsed to folder where I placed the AcroPDF.dll (C:\WINNT\system32). It was not listed in the default list since this lists
    only ocx files. I selected to show all files and the dll was then listed.
    If I selected this I received a message
    The file 'C:\WINNT\system32\AcroPDF.dll' was not registerable as an ActiveX component.
    Adding Adobe Acrobat Browser Control type Library 1.0 as a reference did not show anything in the toolbox.
    There was no red logo in the toolbox items.
    I definitely selected the General list and there was no sign of any Adobe or Acrobat item
    I then tried right click on toolbox, selected Components and Adobe Acrobat Browser Control type Library 1.0
    was not there.
    Stuart

  • Could somebody tell me how to merge or insert pages of Acrobat 9.0 files in VB6?

    I know that Acrobat do not support VB6.
    The PDDoc.InsertPages method worked with Acrobat 6.0 files but is not working with Acrobat 9.0
    I looked into the Scripting Quicktest Professional and unfortunately I could not find how to create script using PDDoc.
    I even could not open document using PDDoc.Open method (return value is false).
    Could anybody help me?
    Thank you,
    Ben 

    Thanks Roger-
    What about the bookmarks? I really have nothing I want to save and transfer over because all I have been through with the old MBP and now this new one with the data that was transferred from my old MBP. I would have thought that the genius guy would have thought about the problems since he was the one who tried to fix the old MBP and left to talk to the manager and came back to tell me they were going to get me a new MBP.
    Anyway, what about the ONE-to-One that I registered on this computer and I have a link to click that brings me to my page and other things like my keychain or all my passwords and usernames? It looks like I missed some with the new MBP because it does not have a name and some small stuff like that is missing because I did not do a set-up. The genius guy did the transfer of all my stuff from my old MBP.
    There were a lot of updates that the genius guy did get (but when I got the MBP, I have been unable to get the machine to tell me I have new updates). I had to find out was I really missing updates or was it something else. I tried to find the place that lists the updates that come across <Apple>Software Updates... I found several "latest updates, recent 3rd party updates, top Apple downloads, but I am not sure which category is the one that tells me the updates I should have had. I know that iTunes it missed, but the rest I am not sure which list has the updates I need.
    Make any sense? I did not get an iLife disk. Is iLife on the grey disks now?

  • Want to add by code a short cut of a pdf file to an rtb in vb6, using adobe reader 9

    Using vb6 code, I add a pdf file from a list to a richtextbox.
    On versions 5 & 6 a "short cut" is placed in the rtb which is what I want so that the document can be double-clicked to view at a later date.
    On versions 8 & 9 the file opens automatically "within" the rtb.
    Can I make version 9 work the same as earlier versions.
    Thanks

    We have PDF documents stored on server-side, the ActiveX control and Adobe Reader are installed on client-side.
    When users open our web page, click our "Print weekly report directly" button, the ActiveX control on client will be called, and perform the above coding. It tries to download the PDF document from server to client, and pass it to the printer on client silently by using FilePrintSilent function.
    The report can be printed, but not correct. It involves some unexpected characters which should be English or Traditional Chinese originally, as shown in the attached picture.
    Thanks in advance!
    William

Maybe you are looking for