Posts

Showing posts from January, 2013

how insert button in task bar

Image
hi , how insert buttons in application taskbar? for example button next or pause on itunes application ... help me plz ! hi, this might help: http://www.youtube.com/watch?v=etrgpp17bss hope helps please mark best replies answers blog: bloggingabout.net/blogs/rick twitter: @rickvdbosch Visual Studio Languages  ,  .NET Framework  >  Visual C#

vb.net Interop Excel - Excel application will not quit

i'm trying excel process quit after doing manipulation, i've tried methods suggested , nothing seems work. here code: dim xlapp excel.application dim wbs excel.workbooks dim wb excel.workbook dim wss excel.sheets dim ws excel.worksheet xlapp = new excel.application() xlapp.visible = false wbs = xlapp.workbooks wb = wbs.open(tmpfile) wss = wb.worksheets ws = wss(1) ws.pagesetup.orientation = microsoft.office.interop.excel.xlpageorientation.xllandscape ws.pagesetup.leftmargin = 10 ws.pagesetup.topmargin = 10 ws.pagesetup.rightmargin = 10 ws.pagesetup.bottommargin = 10 ws.pagesetup.zoom = false ws.pagesetup.fittopageswide = 1 ws.pagesetup.fittopagestall = 100 wb.save() system.runtime.interopservices.marshal.releasecomobject(ws) ws = nothing system.runtime.interopservices.marshal.releasecomobject(wss) wss = nothing wb.close() system.runtime.interopservices.marshal.releasecomobject(wb) wb = nothing system.runtime.interopservices.marshal.releasecomobje

How to change the xmlns attribute on the root when XmlSerialization?

when serializing xml, of course, default, shows these namespaces below: <package xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema" however, how can change these attribute values "xmlns:xsi" , "xmlns:xsd" following values: <package xmlns="http://www.wfmc.org/2002/xpdl1.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"> i had at xmlserializernamespaces class , not find clues this. anyone has ideas? thanks in advance. justin with solution should easy change both, xsi , xsd: /* create xml namespace pairs */     xmlserializernamespaces namespaces = new xmlserializernamespaces();     namespaces.add( "yd", "www.diranieh.com" ); // here add xsd namespaces     /* serialize file */     stream stream = new filestream( "namespaces.xml", filemode.create, fileaccess.write, fileshare.write );     xmlseria

Creating Context object in Commerce Server 2007 site

hi, currently working simple site want display series of catalogs commerce server 2007. face doubt on here. example, where create catalogcontext, read examples forum blogs. saw few ways of achieving it. example codes are as below. 1. catalogcontext context = commercecontext.current.catalogsystem 2. catalogcontext context = catalogcontext .create(sitename) out of 2 examples above, differences, not know first example is able to create context.   the reason why raise out question because doing testing on order system recently, use first method create ordercontext object , able add information inside database. wondering context object boundary. asi direct use commercecontext.current.ordersystem create ordercontext object without creating in first place. please correct me ask dumb question not know different between these two. please advise, .   this question gets asked lot developers work , 1 of important things understand when building highly-available commerce solution

How to handle "On Error goto" statement in Biztalk.

hi all,     need handle "on error goto" statement in biztalk.     have schema like this,     <shipdetails>             <package>                  <item>                  <item>              </package>              <package>                  <item>                  <item>              </package>     </shipdetails>     <shipdetails>             <package>                  <item>                  <item>              </package>              <package>                  <item>                  <item>              </package>      </shipdetails>     has lot of validation in each child nodes(package,item,etc). if first <shipdetails> fails in validation, need proceed second <shipdetails>. atpresent i am erroring log , terminating whole process. need proceed second <shipdetails> since has lot of validation don't know how skip loop. need place decisi

How to do this kind of message transformation?

i have flat file 4 columns: location, category, date , sales data this: 1,toys, 2010-01-01, 100.00 1,toys, 2010-01-02, 210.00 1,food, 2010-01-01, 500.00 2,toys, 2010-01-03, 220.00 try transform file format has structure: <dataset>     <dimension value="1">         <metric category="toy">             <data date="2010-01-01" sales="100.00"/>             <data date="2010-01-02" sales="210.00"/>         </metric>         <metric category="food">             <data date="2010-01-01" sales="500.00"/>         </metric>     </dimension>     <dimension value="2">         <metric category="toy">             <data date="2010-01-03" sales="220.00"/>         </metric>     </dimension> </dataset> reckon easy mapping, didn't figure out functoid can us

How can I create report form Standard Edition

i want create -sales summary  -quatity -shipping -payment of day/month/year  sort category report.   is possible create report standard edition or available enterprise edition only.how can create?   thanks, npeng sorry, standard reports dependent on data warehousing in enterprise edition.   hope helps   glen (software) smith cs2007 training: www.software-smith.com     Commerce Server  >  Commerce Server 2007

'ZoneTemplate' must be included within a parent element

Image
i'm following along ms virtual academy found here: https://mva.microsoft.com/en-us/training-courses/deep-dive-building-blocks-and-services-of-sharepoint-8933?l=anyv0fc3_804984382 the section in question can found @ around 24:45 i have place code has instructor , error: 'zonetemplate' must included within parent element, , 'xsltlistviewwebpart' not supported.  hi, please follow steps below: 1. create sharepoint hosted app using visual studio. 2. add list in solution(don't change anything) using default template. 3. add following code placeholdermain control in default.aspx page. <webpartpages:webpartzone runat="server" frametype="titlebaronly" id="webpartzone"> <zonetemplate> <webpartpages:xsltlistviewwebpart id="productswebpart" runat="server" listurl="lists/products" isincluded="true" nodefaultstyle="true" title="xsltlistview web

Biztalk 2004 integration with SQL server 2008R2

Image
hi, i wondering if bt 2004 works sql server 2008r2 i'm trying add generated items>add adapter>sql in order generate sql schemas , i'm receiving error: i have enabled dtc on both servers , still receiving error? any hints?   biztalk 2004 not support sql server 2008 r2. rachit please mark answer or vote helpful if reply does BizTalk Server  >  BizTalk Server General

UnmanagedType.LPArray and ClassInterfaceType.None

i having problem piece of code. can call getconnectionrawdata method unmanaged code (powerbuilder), when try reference properties of connectiondata errors. if rid of "[classinterface(classinterfacetype.none)]" have no problem accessing properties of connectiondata. there dll conflict? attributes used properly? appreciated.     [comvisible(true)]     [classinterface(classinterfacetype.none)]     [guid("1b09a9e8-480f-4b4b-95f5-2cd6586b44a7")]     public class dbconfigproxyfacade : idbconfigproxy, idisposable     {         [comvisible(true)]         [return: marshalas(unmanagedtype.lparray)]         public connectiondata[] getconnectionrawdata(connectiontype i_connectiontype)         {             try             {                 connectiondata[] connectiondata = _internalweb.getconnectionrawdata(i_connectiontype);                 return connectiondata;             }             catch (exception ex)             {                 errormessage = string.format("

BAM API oddity

hi all, my first time trying use bam api has been less successful. instrumentation have hacked works intermittently, , darned if can figure out why. here's scenario: i write 4 pieces of data bam in 3 places: custom recv pipeline: data 1 orchestration top: data 2 orchestration bottom: data 3 custom send pipeline: data 4 in recv pipeline, generate guid, use activity id, , call beginactivity , updateactivity (this using message event stream pipeline context). @ end of pipeline, call enablecontinuation, pass in guid continuation id , call endactivity. store continutation id in message context. then, message picked orchestration. @ top of orchestration, using orchestrationeventstream, call updateactivity , endactivity , pass in continuationid, i extract context property stored id in while in pipeline. the orchestration stuff. in messageassignment shape, store continuationid in response/outgoing message context use in send pipeline. @ bottom of orchestration, again call updateactivity/en

BackgroundWorker is going to unresponsive!!

hi, i need create windows form monitor backgroundworker process. using (backgroundworker worker = new backgroundworker()) { if (worker.isbusy != true) { worker.workersupportscancellation = true; worker.dowork += backgroundworker1_dowork; worker.runworkercompleted += backgroundworker1_runworkercompleted; worker.runworkerasync(); } } this backgroundworker process update datagrid's datasource property frequently. for testing wrote bellow, datatable dt = (datatable)datagridview1.datasource; (int = 0; < 50; i++) { if (dt == null) { dt = getdatatable(); } else { dt.merge(getdatatable());

Merge 2 XMLs based on their attribute value using C# or XSLT

first xml is: <study stdyname="jyia"> <subject sbjid="001"> <visit visitid="a"> <itemgroup oid="a1" name="gulzar" age="23" /> <itemgroup oid="a2" name="tej" age="32" /> </visit> <visit visitid="b"> <itemgroup oid="b1" name="ahmed" age="22" /> <itemgroup oid="b2" name="praks" age="42" /> </visit> </subject> <subject sbjid="002"> <visit visitid="c"> <itemgroup oid="c1" name="gul" age="13" /> <itemgroup oid="c2" name="te" age="12" /> </visit> </subject> </study> second xml is: <study stdyname="jyia"> <subject sbjid="001"> <vi

Make simple cmd calls and receive the results

hello all, i making simple command prompt style application in c# , wondering if it's possible following: say if user enters "dir" textbox , pushes submit button, returns files of present working directory (exactly how command prompt now). reading around topic looks i'll need spawn cmd.exe , capture relevant output, how 1 this? thanks time. it simple. look @ link: http://stackoverflow.com/questions/1469764/run-command-prompt-commands , know how it. microsoft student parnter microsoft technology associate Visual Studio Languages  ,  .NET Framework  >  Visual C#

EDI X12 dynamic resolution

hi an edi x12 document needs send same partner /same url on same as2 connection ,but different x12 headers (means different edi envelop different isa,gs header values) . an orchestration receives source xml mapped edi x12 document , send port configured https url of partner .the parameter decides on edi envelop country code in source xml. is ok have 1 as2 agreement , multiple different x12 agreement between same parties under same profile ? if , associating different send ports (with same url) different x12 agreements ,should trick ?   alternatively , work using edioverride override edi headers @ runtime in orchestration ?   any thoughts ,how acheived in best possible way . thanks   http://biztalkguide.blogspot.com/ please mark answer if solved issue.thanks i think overriding header @ runtime in orchestration work in case.. you can check the  country code in source xml , override edi headers , route them appropriate send port .

Imperative USQL \ Run C# Code on ADLA

1) how write control code usql?  example, move records between rowsets depending on result of query, , iteratively?  need write c# wrapper dynamically generates , submits usql? 2) if so, can run c# code directly on adla, or need write web-app interacts adla this? this dupe of stackoverflow post that's getting traction.  suggest drive question there.  http://stackoverflow.com/questions/41006273/imperative-usql thank you, guy Microsoft Azure  >  Azure Data Lake Analytics & Store

Storing many-to-one relationships in a .Config file

hi, i'm trying write c# app read user permissions folders.  since not wish recompile app if changes desired user permissions, i'd store in app's .config file.  cannot see how cleanly though. a custom .config file section looks like: <configuration> <configsections> <sectiongroup name="mygroup"> <section name="mysection" type="system.configuration.namevaluesectionhandler, system, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934df89" /> </sectiongroup> </configsections> <mygroup> <mysection> <add key="mykey1" value="somesetting"/> </mysection> </mygroup> </configuration> nice if store many-to-one relationship (maybe if use different type?).  guess inside value attribute like: <add key="mykey1" value="c:\mypath;nt authority\network service;read;write"/>

types dataset

hi, i creating project using typed dataset first time. the datatier returns dataset of .xsd type webservice //dsemps .xsd public dsemps getdata()   {    string strsql = "select employeeid, lastname, firstname, title, titleofcourtesy, birthdate, hiredate, address, city, region, postalcode, country, homephone, extension, photo, notes, reportsto, photopath employees";    string strconn = "server=localhost;" + "database=northwind;" + "integrated security=sspi;connect timeout=5";        dsemps dsdata = new dsemps();    using(sqldataadapter oda = new sqldataadapter(strsql, strconn))    {     oda.fill(dsdata, "employees");          return dsdata;    }   } here if use dataset below: placing dot after dataset (i.e. dsdata) shows employees table , placing dot shows field names... this far. problem in webservice returned dataset below, can not column names after dadata.employees. //empdata datatier... public empdata.dsemps getdata()   {    try

Access each node from List

hi all, trying access each node list. facing problem. structure of items in list mentioned below: a1    a1_1          a1_1_1          a1_1_2          a1_1_3    a1_2          a1_2_1          a1_2_1    a1_3 b2    b2_1          b2_1_1          b2_1_2 c3 i able access each items of "a1" node (including sub-nodes well), not able access items of "b2" , "c3". here code: public void recursivenode(list<idatanode> node, string stroperation) { foreach (idatanode node in node) { if (node.countchildren > 0) { if (stroperation == "expand" && node.expanded != true) { node.expanded = !node.expanded; preparenodes(m_pos, node.expanded); } m_pos += 1; recursivenode(node.children, strop

Create list with Java data

Image
hi: we developing app using java , want to: - automatically create list data stored java variables - show fields of list (the ones created user) in app thank you! hi, sharepoint provide soap web service( http://site url/_api/web/lists ), can call web services or rest services in java app meet requirement. the following articles reference: lists methods : https://msdn.microsoft.com/en-us/library/lists.lists_methods(v=office.12).aspx rest apis : https://msdn.microsoft.com/en-us/library/office/jj860569.aspx creating sharepoint list items java: tutorial https://davidsit.wordpress.com/2010/02/15/creating-sharepoint-list-items-with-java-tutorial/ reading sharepoint list java: tutorial https://davidsit.wordpress.com/2010/02/10/reading-a-sharepoint-list-with-java-tutorial/ interoperability between java , sharepoint 2013 on premises http://ctp-ms.blogspot.com/2012/12/interoperability-between-java-and.html best regards, dennis guo technet community sup

Antivirus exception for BizTalk Binaries

i remember reading ms recommendation excluding biztalk binaries folder realtime av scanning better performance. folder - d:\program files (x86)\microsoft biztalk server 2009 or sub-folder d:\program files (x86)\microsoft biztalk server 2009\bins64 contains few .dll files? is best practice being typically followed or ignored? thanks.   hi, i have read else regarding exclusion av. should exclude real-time scanning better performance: any biztalk file receive queue folders iis virtual directories used biztalk server any file extensions used, i.e. if consuming xml messages exclude scanning of .xml files. sql server files hth regards, steef-jan wiggers mvp & mcts biztalk server http://soa-thoughts.blogspot.com/ if answers question please mark accordingly   biztalk BizTalk Server  > 

Is there a way to turn off auto-formatting in the MSDev C# environment?

if copy/paste code in c# msdev auto reformats code. i align code when initialize block of variables readability.  auto-reformatting messing up. for example similar this: (c++ example) dword dwerrors = 0x00000000; bool berror = false; bool boop = false; bool boverrun = false; bool bpto = false; bool brxover = false; bool brxparity = false; bool btxfull = false; bool bbreak = false; bool bdns = false; bool bframe = false; bool bioerror = false; bool bmode = false; cstring cserror;   found answer: menu: tools->options | text editor->c#->formatting   Archived Forums V  >  Visual C# IDE