Web Connection 5.0
Re: wwDotNetBridge
02/08/2010
11:37:22 PM
2V11EMRQJ Show this entire thread in new window
Gratar Image based on email address
From:
Raghu
To:
Rick Strahl 
Attachments:
None
Thanks, yes it has parameter constructor.

I got another problem.

Here is the actual class :

using Google.GData.Client; using Google.GData.Extensions; using System; using System.Xml; namespace Google.GData.Spreadsheets { public class CellEntry : AbstractEntry { public static AtomCategory CELL_CATEGORY; public CellEntry(); public CellEntry(string inputValue); [CLSCompliant(false)] public CellEntry(uint row, uint column); [CLSCompliant(false)] public CellEntry(uint row, uint column, string inputValue); public CellEntry.CellElement Cell { get; set; } [CLSCompliant(false)] public class CellElement : SimpleElement { public CellElement(); [CLSCompliant(false)] public uint Column { get; set; } public string InputValue { get; set; } public string NumericValue { get; set; } [CLSCompliant(false)] public uint Row { get; set; } } } }

the following command is working fine (giving object)
loBridge.createinstance("Google.GData.Spreadsheets.CellEntry")
but this one is not (giving NULL and saying "type not loaded")
loBridge.createinstance("Google.GData.Spreadsheets.CellEntry.CellElement")

Actually CellElement is under the CellEntry class (you can see the above code)

Can you tell me , how can I Initiate CellElement class ?

Thanks,
Raghu

The type probably doesn't have a parameterless constructor. You likely need to pass a parameter to the constructur when you call CreateInstance.

Check the constructor syntax in Reflector to see what constructor parameters are supported/required.

+++ Rick ---


Hi,

When I try to access google docs GData API, It is saying,

Constructor on type 'Google.GData.Spreadsheets.SpreadsheetsService' not found.

?loBridge.loadassembly("C:\Program Files\Google\Google Data API SDK\Redist\Google.GData.Spreadsheets.dll") is true ?loBridge.createinstance("Google.GData.Spreadsheets.SpreadsheetsService") is NULL


Can you tell me what is the wrong here ?