Adding multiple events to a single ics Calendar file

I'm facing a weird problem here. Whenever I generate an ics file with a single event and open it, the event automatically integrates nto my outlook calendar. That's very fine. However, when i add more than 1 event to a single ics file, and when i open it,
it creates a new calendar in Outlook, doesn't integrate into my default outlook calendar. Please help me with this issue.....

protected
void
btnDownloadAll_Click(GridViewRow
row)
try
int
i = row.RowIndex;
string
organizer = "[email protected]"
string
location = ddlCity.SelectedValue;
DataSet
ds = new
DataSet
if
(ddlSelect.SelectedIndex == 0)
ds = Dataobj.Get_Annual_Schedule(ddlCity.SelectedValue, ddlMonth.SelectedIndex, ddlYear.SelectedValue);
if
(ds.Tables[0].Rows.Count > 0)
int
uniqKey = 0;
string[]
startTime = new
string
[20];
string[]
endTime = new
string
[20];
string[]
startDate = new
string
[20];
string[]
endDate = new
string
[20];
DateTime
sd, ed;
int
j = i + 1;
if
(i < ds.Tables[0].Rows.Count)
content.Add(
"\nBEGIN:VEVENT"
content.Add(
"\nORGANIZER:MAILTO:"
+ organizer);
sd = (
DateTime)ds.Tables[0].Rows[i]["StartDate"
ed = (
DateTime)ds.Tables[0].Rows[i]["EndDate"
string[]
stime = startTime[i].Split(':'
string[]
etime = endTime[i].Split(':'
TimeSpan
starttime = new
TimeSpan(Convert.ToInt32(stime[0]),
Convert
.ToInt32(stime[1]), 0);
sd = sd.Date + starttime;
TimeSpan
endtime = new
TimeSpan(Convert.ToInt32(etime[0]),
Convert
.ToInt32(etime[1]), 0);
ed = ed.Date + endtime;
string
test1 = sd.ToUniversalTime().ToString(DateFormat);
string
test2 = ed.ToUniversalTime().ToString(DateFormat);
content.Add(
"\nX-MICROSOFT-CDO-BUSYSTATUS:FREE"
content.Add(
"\nDTSTART:"
+ sd.ToUniversalTime().ToString(DateFormat));
content.Add(
"\nDTEND:"
+ ed.ToUniversalTime().ToString(DateFormat));
content.Add(
"\nLOCATION:"
+ ds.Tables[0].Rows[i]["City"
].ToString());
content.Add(
"\nUID:"
+ DateTime.Now.ToUniversalTime().ToString(DateFormat)
+ "@cognizant.com"
+ uniqKey);
content.Add(
"\nDTSTAMP:"
+ DateTime
.Now.ToUniversalTime().ToString(DateFormat));
content.Add(
"\nSUMMARY:"
+ "Annual Maintenance - "
+ ddlCity.SelectedValue + "-"
content.Add(
"\nDESCRIPTION: Annual Maintenance Downtime"
content.Add(
"\nPRIORITY:1"
content.Add(
"\nCLASS:PUBLIC"
content.Add(
"\nBEGIN:VALARM"
content.Add(
"\nACTION:DISPLAY"
content.Add(
"\nTRIGGER:-P7DT0H0M0S"
content.Add(
"\nSUMMARY:Alarm notification"
content.Add(
"\nEND:VALARM"
content.Add(
"\nEND:VEVENT"
uniqKey++;
content.Add(
"BEGIN:VCALENDAR"
content.Add(
"\nVERSION:2.0"
content.Add(
"\nMETHOD:PUBLISH"
foreach
(GridViewRow
row in
gvAnnualMaintanence.Rows)
CheckBox
checkbox = (CheckBox)row.FindControl("chkGrdAnnual"
if
(checkbox.Checked)
btnDownloadAll_Click(row);
content.Add(
"\nEND:VCALENDAR"

Similar Messages

  • I downloaded an ICS calendar file onto my ipad2 and now my calendar will not open?

    I downloaded an ICS calendar file onto my ipad2 and now my calendar will not open?

    I would try to hold down home and on button till the slider to turn it off comes around
    then slide it to turn it off then turn it on again
    if they still didin't work then I would check if the appleID currently being used was the
    one the apps was bought with

  • How do I copy multiple events from a single calendar to another calendar?

    I have multiple events from my "Family" calendar that I want to move. I would like to create a new calendar and move only specific events from my "Family" calendar to this new calendar. I have tried to select each event, then export, but this doesn't seem to work. It seems to export all events in the "Family" calendar, not just the ones that have been selected. Is there any way to do this aside from exporting each event one at a time and reimporting to a new calendar?

    Drag them there. The volume they’re put onto needs to be formatted as Mac OS Extended.
    (111592)

  • With multiple events in a single event case, how to associate value with the correct object?

    I am playing with the template where an event structure takes note of user inputs and a main state machine is then used to respond to these inputs. When I only monitor one control I use the 'NewVal' output to read out the changed value. But when I monitor multiple objects with a single case I also have to associate the readout with the correct owner. After some tinkering I was able to extract the label property and use a case to assign them. Are there better ways of doing this? For example maybe there is a way to connect the label text directly to the 'bundle by name'?
    Also this should be easy to accomplish by simply creating local variables of the objects and read from them, but I got the impression that the use of global and local variables is now strongly discouraged?
    Thanks for any suggestions!
    Attachments:
    Untitled.png ‏39 KB

    Well, I don't really like these theroretical discussions. Can you attach a simplified version of some of your code?
    There are many other ways to identify the particular control. You could for example search an array of references for the value of the "ctlref" event data node. This would make the code much more robust (your code will fail for example if you (or some other programmer updating your code in a few years!) notices a mispelling and edits the label without also changing the case structure cases).
    LabVIEW Champion . Do more with less code and in less time .

  • Just added an event to iPod Touch's calendar!

    I was one of the assumed many who have not yet bought an iPod Touch due to the lack of ability to add/edit calendar events and contacts.
    I walked into an Apple store yesterday just to check it out, like I normally do, and I was playing with the iPod Touch for a bit and noticed a little plus icon at the top of the calendar. I thought that was odd since you couldn't add events, but I pushed it and sure enough, an add event screen popped up and I successfully added an event to the calendar. I was amazed that I hadn't heard anything about this yet. I also checked out the address book and sure enough, I could add a contact as well.
    Looks like I'll be getting an iPod Touch this Christmas!

    Yes, it was added in the 1.1.2 update.
    Scott

  • Outlook 2013 crashes when adding an event using an emailed ics file.

    I use Outlook 2013, Hotmail and an Android phone to manage my calendar, with Outlook 2013 and Android synching to the Outlook.com account.
    Scenario 1:
    1. Receive meeting requests with attached ics files from an Apple Mac user
    2. Drag ics file attachment to the Outlook calendar
    3. "Meeting" window opens
    4. Click "Accept" then "Send Response Now" OR "Do Not Send a Response"
    OR "Edit the Response Before Sending" then "Send"
    5. Outlook crashes (see event log below) and restarts
    6. On restart the meeting request has been added to the Outlook calendar
    7. Meeting is not in the Outlook.com calendar
    8. Meeting organiser does not receive email response
    Event Log:
    Faulting application name: OUTLOOK.EXE, version: 15.0.4675.1003, time stamp: 0x548ba4b9
    Faulting module name: pstprx32.dll, version: 15.0.4673.1000, time stamp: 0x54588166
    Exception code: 0xc0000005
    Fault offset: 0x0007278b
    Faulting process id: 0x1320
    Faulting application start time: 0x01d02a0fc01024ab
    Faulting application path: C:\Program Files\Microsoft Office 15\root\office15\OUTLOOK.EXE
    Faulting module path: C:\Program Files\Microsoft Office 15\Root\Office15\pstprx32.dll
    Report Id: 2ce5a0d4-9603-11e4-8369-ac7ba12ac262
    Faulting package full name:
    Faulting package-relative application ID:
    Scenario 2:
    1. Receive meeting requests with attached ics files from an Apple Mac user
    2. Double click on the ics file
    3. Error message "The attempted operation failed. An object could not be found"
    Observations:
    Re-creating the Hotmail account OST file makes no difference.
    The workaround described here:
    http://answers.microsoft.com/en-us/office/forum/office_2013_release-outlook/cannot-open-ics-meeting-invite/99ce57cc-5ffe-42f7-ba0a-87d6d928cb85
    requires approximately 15 clicks, instead of two or three, so isn't workable for large numbers of meeting requests.
    Meeting requests can be added to the local pst file calendar successfully.  This calendar is not used because it doesn't allow synching with other devices.
    System configuration:
    Windows 8.1 - Most recent Windows Update check: "No updates are available"
    Outlook 2013 (15.0.4675.1003), standalone installation (no Exchange Server) - Most recent Office Updates check: "The latest version of Office is installed on your computer"
    Email containing ics attachments (and all other email) is sent to an email alias which is then forwarded to my ISP-provided email address
    ISP email address is connected using IMAP/SMTP
    Outlook.com / hotmail account is connected using EAS

    Sorry for the delay. I was supposed to get alerts on this, but I never did. N2K has been built and rebuilt, and still the error comes up. For one Exchange user that's in the N2K file, I can look at it now, and it matches up with others on the same server.
    But 2-3 days from now, it will somehow be changed to“/o=First Organization/ou=First Administrative Group/cn=Recipients/cn=user” and that starts Outlook crashing again. The error happened for several months, and during this time the user was moved to a new
    Exchange server. A new profile was created after the move, but the problem followed him.
    I removed the offending user again today. The entry in n2K is getting changed to “/o=First Organization/ou=First Administrative Group/cn=Recipients/cn=user”. I found that is is a legacyExchange issue, but I don't know from where it's being changed -
    on the user who's Outlook is crashing, on the user sending the email, or on the AD server. I am not an Exchange expert, so reading a few websites that point out what this is didn't really help me figure out how to remove the legacyExchange problem. The customer
    is using hosted Exchange, so I can't get onto the server to dig into it. Is it in the Global Address Book, or a user's individual contact?
    I ran OffCAT and it pointed out two addins that had Resiliancy set. They were both Outlook Addins, DPOfcX.ComposeRibbon and OutlookChangeNotifier.Connect. So I hope they aren't the issue.

  • Multiple events in a single list

    Does anyone know how create mutliple change events in the same list? 
    Basically want to access different view files by clicking different lines from a single list. 
    I havent seen anything on this.  Is it even possible in Flex? 
    This is for a mobile application.
    Thaks!

    Well, I don't really like these theroretical discussions. Can you attach a simplified version of some of your code?
    There are many other ways to identify the particular control. You could for example search an array of references for the value of the "ctlref" event data node. This would make the code much more robust (your code will fail for example if you (or some other programmer updating your code in a few years!) notices a mispelling and edits the label without also changing the case structure cases).
    LabVIEW Champion . Do more with less code and in less time .

  • Adding multiple songs to a single slideshow in LR3

         Hello!
    So, I am trying to create a slideshow in Lightroom 3.4.1. I'm on a mac, and have been able to succesfully pull in a single song from my iTunes library. However, there are two issues:
    1. My slideshow is a bit long, and I would like to have 2-3 songs play during it. However, lightroom will only let me import one song. I even created a playlist in iTunes, then tried to import the whole playlist, but again, it would not let me. I could only import one song
    2. Some of my music in iTunes can be imported, but about 70% of my library is 'gray'--or not clickable. I can't figure out why some of my songs can be imported and some cannot.
    Thanks for any help!
    Ellen

    You can't use more than one song.  If you want to, you'll have to use a tool to splice them together into a single file.
    You can't use DRM-infected music in LR.

  • Is OIA supports adding Multiple data owners for single role?

    Hi
    Can you please let me know, if we can assign multiple data owners under resources tab, data mangement tab.
    Or with glossory upload using file based?
    The intension to keep backup data owner for each role for certifications.
    Thanks

    No, OIA does not support multiple data owner. You also cannot target the backup data owner in certification.

  • Help with creating multiple events for a single button

    I have a basic gui that is used to view a query. There is a JTextArea where the infromation from the query displays. Now i also have JTextAFields that correspond to each column from the table that i am querying from. I have an edit button that will take the current query (which i have a reference to) and put in each JTextField the correct information (it re exectutes the query given the id of the current result in the query, and sets the text in each field).
    All this works fine.. Now the text fields have been filled in, and the user can change them accordingly. I set the text of the edit button to say update, and i add an action listener within the current listener for that button.. When the update button is pressed, everything is fine.. However, after that, the listener has changed and i get exceptions everytime i press edit.. Below i have made it so that i create a new action when the edit button (named update that after they press it, it then displays update.. and the insert button changes to insert.. now an insert query is different than an update so i can't just enable only insert or anything like that).
    is there any way to have 1 button that can do different things depending on the context? I can't figure out how to do it..
    here is what i have as far as listeners for my buttons
              ButtonHandler buttonHandler = new ButtonHandler();
             exit.addActionListener(buttonHandler);
             first.addActionListener(buttonHandler);
             prev.addActionListener(buttonHandler);
             next.addActionListener(buttonHandler);
             last.addActionListener(buttonHandler);
              insert.addActionListener(new insertButtonAction());
              delete.addActionListener(new deleteButtonAction());
              update.addActionListener(new editButtonAction());
              rollback.addActionListener(new rollbackButtonAction());
              commit.addActionListener(new commitButtonAction());
              sendQuery.addActionListener(new sendQueryButtonAction());
         class ButtonHandler implements ActionListener {  // this is a Controller class
           public void actionPerformed (ActionEvent e) {
              JButton b = (JButton)e.getSource();
              try {
                 if (b==first) {
                    if (result.first())
                       updateText();
                 else if (b==prev) {
                    if (result.previous())
                       updateText();
                    else
                       prev.setEnabled(false);
                 else if (b==next) {
                    if (result.next())
                          updateText();
                    else
                       next.setEnabled(false);
                  else if (b==last) {
                     if (result.last())
                        updateText();
                  else if (b==exit) {
                     db.close();
                     f.dispose();
                     System.exit(0);
               catch(SQLException ex) {
                     System.out.println("Could not perform operation()\n" +  ex.getMessage());
         private class insertButtonAction implements ActionListener {
              public void actionPerformed( ActionEvent e ) {
                   feedback = insertEntry();     
         private class editButtonAction implements ActionListener {
              public void actionPerformed( ActionEvent e ) {
                   try {
                        int ID = result.getInt(1);
                        update.setText("update");
                        insert.setText("cancel");
                        delete.setEnabled(false);
                        rollback.setEnabled(false);
                        sendQuery.setEnabled(false);
                        Statement qStatement = conn.createStatement();
                        String qs = "select EMPNO, ENAME, JOB, MGR, HIREDATE, " +
                             "     SAL, COMM, emp.DEPTNO " +
                           "from emp WHERE empno = " + ID;
                      ResultSet rs = qStatement.executeQuery(qs);
                        rs.next();               
                       enoField.setText(rs.getString(1));
                        enameField.setText(rs.getString(2));
                        jobField.setText(rs.getString(3));
                        mgrField.setText(rs.getString(4));
                        hdateField.setText(rs.getString(5));
                        salField.setText(rs.getString(6));
                        commField.setText(rs.getString(7));
                        dnoField.setText(rs.getString(8));
                   } catch (SQLException ex) {
                       area.setText("Could not fetch row because of " + ex.getMessage());
                   update.addActionListener(new updateButtonAction());
                   insert.addActionListener(new cancelButtonAction());
                   /*Although this compiles and works the first time, after i've
                    it no longer works after that */
              class updateButtonAction implements ActionListener {
                   public void actionPerformed( ActionEvent e ) {
                        feedback = updateQuery();
                        area.setText(feedback);
                        resetButtons();
                        clearFields();
                        update.setEnabled(false);
              class cancelButtonAction implements ActionListener {
                   public void actionPerformed( ActionEvent e ) {
                        resetButtons();
                        area.setText("Operation Canceled");
                        clearFields();
                        update.removeActionListener(e);
         private class deleteButtonAction implements ActionListener {
              public void actionPerformed( ActionEvent e ) {
                   try {
                        feedback = deleteEntry(result.getInt(1));
                        area.setText(feedback);
                   } catch (SQLException ex) {
                      area.setText("Could not fetch row because of " + ex.getMessage());
         private class rollbackButtonAction implements ActionListener {
              public void actionPerformed( ActionEvent e ) {
                   try {
                        Statement rstmt = conn.createStatement();
                        rstmt.executeQuery("rollback");
                        area.setText("Rollback Successfull.");
                   } catch (SQLException ex) {
                        area.setText("Could not rollback.");
         private class commitButtonAction implements ActionListener {
              public void actionPerformed( ActionEvent e ) {
                   try {
                        Statement rstmt = conn.createStatement();
                        rstmt.executeQuery("commit");
                   } catch (SQLException ex) {
                        area.setText("Could not commit changes.");
         private class sendQueryButtonAction implements ActionListener {
              public void actionPerformed( ActionEvent e ) {
                   query(db, selectQ);
        void resetButtons(){
             insert.setText("Insert");
             update.setText("Edit");
             delete.setEnabled(true);
             rollback.setEnabled(true);
             sendQuery.setEnabled(true);
       any suggested would be appreciated

    App message delivery is not retried in B2B, rather failed messages are delivered to the IP_IN_QUEUE. Please enable the logging for B2B engine in TRACE 32 mode and run a test to reproduce the behaviour. Post the log here or mail across to my id (in my profile).
    Regards,
    Anuj

  • How can I import an ics calendar file to my iPAd2

    I want to import my Windows calendar into my iPad2. I've tried using the ics file which is mentioned in the manual but no joy. What can I do?

    I have done extensive research and it appears that this can't be done.  A couple of people said you can email your .ics file to the iOS device, click on the file and you will be prompted to add the events to the calendar.  But this process failed for me, and when I tried it a second time, I didn't get the "add all" option any more.  I'm guessing the 4000 or so events were too much for the phone's processing and syncing capabilities.  Anyway, Apple's failure to support a basic function like .ics import on Windows means that I won't be using iCloud anytime soon.  It's too bad, because I would appreciate the ability to set a reminder on the desktop and have it work on the phone, which I can't do with my Gmail calendar.

  • Receiving an ics calendar file from Outlook

    I have two calendar databases.  At work, my PC is attached to the corporate Exchange server.  No other email client or system is permitted.  At home, I'm using Mail that is part of Mac OSX / iOS5 / iCloud as well as a cpi[;e pf other providers such as Yahoo and GMail. Each in their own domain is working well.  One annoycance is I may setup a calendard event at work where I need the calendar event to warn me that i will need to leave the office for an external appointment.  Howeer, I also need tis informaiton at home. 
    If I set up this personal appointment at work, I open the event and forward it to my iCloud (formerly Mobile Me) account as an ICS file.  If I work next on my iMac or Macbook, I open the attachment on the eail for ics event, OS X will open a proposed calendar even which I can edit and save.  That is just perfect.  However, if I see the event in my eMail on the iPhone 4s (iOS 5 with current updates), the event is attached to the email.  But if I press on it, it does not open or show more detail.All that is displayed as an iCon that I beiev identiies it as a calenar event, a file name with the subjecct of the meeting with a .ics at the end, the size of the attachment and a right pointing arrow that does nothing.
    The design appears to be a good one if it worked.  As it may be many hours from my seding the event to my home email until I get to the home computer, I woudl like to update my iCloud calendar and I prefer to autoamate that to the extent that I do not need to retype the infor again. 
    Any ideas what my issue is?
    thanks,
    Bruce

    In my case the only exchange account I had was at work and was read through Outlook (the only mail client the company permitted at work).  What I was trying to do is send an appointment from Outlook at work to my xxx.me account at home.  If I opened it in Mac OS X Mail client, it worked perectly.  But on iOS devices the attachment was not recognized as a calendar event. 

  • Automatically generating multiple pdf reports from single(*.rpt) report file

    Post Author: msam
    CA Forum: General
    I would like to be able to automatically pass a parameter list to a single report, and have it automatically generate multiple reports (as saved pdf files), based on the parameter list.
    Is this possible?  If so, could someone point me to some documentation?  Thanks.

    What you probably need to do is generate each bio
    individually with the
    <cfdocument...> tag just the way you want them. And
    then use some of
    the advanced <cfpdf...> functionality that allows you
    to append two or
    more individual PDF's into a single large PDF.
    Here are some resources that describe some of the
    <cfpdf...> functionality.
    http://www.coldfusionjedi.com/index.cfm/2007/7/9/ColdFusion-8-Working-with-PDFs-Part-1
    http://www.coldfusionjedi.com/index.cfm/2007/7/10/ColdFusion-8-Working-with-PDFs-Part-2
    http://cfpdf.blogspot.com/
    http://cfpdf.blogspot.com/2007/06/cfpdf-action-merge_27.html
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=cfpdf_02.html

  • Can I link multiple iPhoto Events into a single slide show?

    I keep iPhoto Events based upon date and activity.  For example a European trip my be 3-4 events with one per country.  I also have Applw TV.  My question is can I link multiple Events into a single sideshow.  I have a lot of pictures, so doing this selection at the picture level will be tedious at best. 

    Not sure where you are going but my suggestion is not to work at the photo level - you simply select all of the photos in an event and create an album then drag all of the photos in each other event to that album giving you an album with all of the photos from the desired events in one place - then sleect them and make a slideshow - no working with indivitual photos at all
    LN

  • When I add a *.ics calendar item via email on my iPhone it shows in my calendar on my iPhone but it does not show in my calendar on my iPad. Why?

    I am using icloud and family share but when I receive an email with a *.ics calendar file and add it to my calendar on one of my devices it does not show on the calendar of the other devices. Same happens if I e.g. add my flight details to my calendar via the KLM app. The details show in the calendar of the device where I did it, but not in the others.
    But if I add a new calendar entry on one of my devices it immediately shows on all my other devices.

    If you are talking Photostream remember that Photostream does not transfer existing photos on your device it only transfers new photos added to the camera Roll by taking or saving them. Also note that photos aren't added to Photostream until after the Camera app is no longer in use. Furthermore Photostream is not a backup media. It only saves up to 1000 photos and only for 30 days.
    If you are talking about camera roll photos saved in an iCloud backup then there is no way to view these. They are for backup purposes only.

Maybe you are looking for

  • Printing problem on java applet

    Hi, I'm Korean and MacBook air user. I'm very not good at English, please excuse me . I use OS X 10.8.3 and jdk 7. I make a simple java applet program includes printing functionary. But, only browsers (Safari and FireFox) on Mac OS X  not printing fo

  • Integration

    HI, ALL     I need to now the integration betwwen sd mm pp with fi co i am going to work on an implementation project pls give clear explanation with all steps in all modules related to integration with fi/co. and pls give the effect for field select

  • Problem clearing floats

    Here is an interesting problem. My page has a left sidebar, which is obviously floated left. In the main part of the page, I want to float an image so the descriptive text will be next to it rather than below it. I have multiple images to do this wit

  • Can anyone explain the usage of alternative reconciliation account?

    I maintained the relationship between G/L reconciliation ccount and Alternative reconciliation account. But I failed to find where I can pick the alternative reconciliation account when I posted a AP document. Can anyone tell me the usage of alternat

  • Good Book on compression?

    There was a thread I read a few weeks ago where some dude who answered sounded like the demi-god of compression. He mentioned some books and I want to get one. I don't remember his name or the name of the thread. But you read this, demi-god of compre