Search - InfoPath Dev

InfoPath Dev

Search

Page 3 of 8 (77 items) < Previous 1 2 3 4 5 Next > ... Last »
  • Re: String was not recognized as a valid DateTime.

    I have made a little progress.&nbsp; The data that comes from the date field looks correct - IP is leaving the time off of it so there is no &#39;T&#39; so I just left that part of the code out.&nbsp; In the time field, the data looks like this 12/30/1899 3:30:00 PM so it doesn&#39;t have a T either.&nbsp; I am making the assumption that the ...
    Posted to Code (Forum) by BuildPro Guru on 01-09-2009
  • Re: String was not recognized as a valid DateTime.

    Hello Hilary!&nbsp; Good to hear from you!&nbsp; Getting a couple of different errors now: Error&nbsp;1&nbsp;The best overloaded method match for &#39;System.Convert.ToDateTime(object, System.IFormatProvider)&#39; has some invalid arguments&nbsp;C:\Documents and Settings\dfisher\My Documents\InfoPath Projects\Customer Care ...
    Posted to Code (Forum) by BuildPro Guru on 01-09-2009
  • Re: String was not recognized as a valid DateTime.

    Sorry to be such a pain, but I am afraid that I do not know much about writing code.&nbsp; I am now getting this error: Length cannot be less than zero. Parameter name: length This is how I have it: // Set the start date myAppointment.Start = Convert.ToDateTime(StartDateSeed.Substring(0, StartDateSeed.IndexOf(&quot;T&quot;)) + ...
    Posted to Code (Forum) by BuildPro Guru on 01-09-2009
  • Re: String was not recognized as a valid DateTime.

    That was the first thing that I thought of, but there are complications.&nbsp; I am getting the data from/storing to a SQL DB as well as publishing the form to a SharePoint forms library.&nbsp; The two fields in question are promoted to columns in the forms library and if I don&#39;t have them formatted as DateTime, SP tries to stick the missing ...
    Posted to Code (Forum) by BuildPro Guru on 01-09-2009
  • Re: String was not recognized as a valid DateTime.

    I think I may have figured it out.&nbsp; the two fields that I am using to create the myAppointment.Start are both date/time fields.&nbsp; I have formatted them to display just the date in one field and just the time in the other field, but i think that IP is putting the date and the time in both fields, but just not displaying it.&nbsp; Do you ...
    Posted to Code (Forum) by BuildPro Guru on 01-09-2009
  • Re: String was not recognized as a valid DateTime.

    myAppointment is referrming to the AppointmentItem Object for creating the appointment in the calendar.&nbsp; Here is the rest of the code - maybe that will help: //Add a reference to Microsoft Outlook 12.0 Object Library.&nbsp;Create new instance of Microsoft.Office.Interop.Outlook.Application object: Microsoft.Office.Interop.Outlook.Application ...
    Posted to Code (Forum) by BuildPro Guru on 01-09-2009
  • Re: String was not recognized as a valid DateTime.

    Additionally, I have found that if I omit just the +StartTimeSeed I get the appointment with the correct date, but a time of 12 am - I assume because the time element is missing.
    Posted to Code (Forum) by BuildPro Guru on 01-09-2009
  • Re: String was not recognized as a valid DateTime.

    Good Morning Swathip.&nbsp; Thank you for your assistance, but now I am getting this error: Cannot implicitly convert type &#39;System.DateTime&#39; to &#39;Microsoft.Office.Interop.Outlook._AppointmentItem&#39;&nbsp;C:\Documents and Settings\dfisher\My Documents\InfoPath Projects\Customer Care ...
    Posted to Code (Forum) by BuildPro Guru on 01-09-2009
  • String was not recognized as a valid DateTime.

    &nbsp;Hello Everyone.&nbsp; I am creating the ability to set an appointment in someone&#39;s calendar and use values in the form to set the attributes of the appoinement.&nbsp; I am getting stuck trying to convert two fields to DateTime.&nbsp; I get this error: System.FormatException was unhandled by user code &nbsp; Message=&quot;String was not ...
    Posted to Code (Forum) by BuildPro Guru on 01-09-2009
  • Re: Can InfoPath (2003 SP1) add an event in Outlook Calendar?

    Actually, I fixed it!&nbsp; I got confused with my naming conventions.&nbsp; Here is the final draft.&nbsp; //First thing you need to do is add a reference to Microsoft Outlook 12.0 Object Library. Then, create new instance of Microsoft.Office.Interop.Outlook.Application object: Microsoft.Office.Interop.Outlook.Application outlookApp = new ...
    Posted to Newbie Questions (Forum) by BuildPro Guru on 01-08-2009
Page 3 of 8 (77 items) < Previous 1 2 3 4 5 Next > ... Last »
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.