c# - How do I add a Report column with data derived from a method call or dll call -


i maintaining report in vs 2013 gets user data table in sql using c#. connected sql , has dataset table.

the report displays data, want add user name. user name not stored on table. seem unable add field dataset tied table. plan add field , populate upon load dll call or following vb code...

public function getname(lanid string) string     dim app microsoft.office.interop.outlook.application     dim appnamespace microsoft.office.interop.outlook._namespace      dim recip microsoft.office.interop.outlook.recipient     dim ae microsoft.office.interop.outlook.addressentry      app = new microsoft.office.interop.outlook.application     appnamespace = app.getnamespace("mapi")     recip = appnamespace.createrecipient(lanid)     recip.resolve()     try         ae = recip.addressentry     catch ex exception         getname = "not found"         exit function     end try      dim name string     name = ae.name     getname = name end function 

i have tried following #error in column...

1, added references ms dlls required above 2, added code custom code section 3, added column , set expression =code.getname("f468s8")

what wrong? correct way derive data method call or complicated report?

it looks dataset based off table cannot add column view filling in data before display report?

i guess overall question report experts is, how code this. need simple example of how call inline method/dll or need create new dataset , manually populate first? did not see easy way add separate dataset.

i tried creating hashtable user data needed seem unable reference in code section of report.

i new reporting (in case had not realized)!!!

thanks in advance john


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -