如何管理Google日历的约会? [英] How do I manage my appointment with Google calendar?

查看:82
本文介绍了如何管理Google日历的约会?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上我每天都在为所有用户创建约会。如果我创建约会,它应该能够由用户在他们的Google日历中查看。

最初我通过创建.ics文件开始此任务,然后我发送给用户邮件帐户。 />
我已经在Google的帮助下使用以下代码创建日历文件。

  string  strDesc =  新任务已创建: + A.task_title +  ; 
string [] contents = { BEGIN :VCALENDAR
PRODID: - // Flo Inc.//FloSoft// EN
BEGIN:VEVENT
< span class =code-string> DTSTART: + schBeginDate.ToUniversalTime()。ToString( yyyyMMdd \\THHmmss \\Z),
DTEND: + schEndDate.ToUniversalTime()。ToString( yyyyMMdd \\THHmmss \\Z),
位置: + strLocation,
DESCRIPTION; ENCODING = ESCAPED- CHAR: + strDesc,
摘要: + SKS任务: + A.task_title,
PRIORITY:3
END:VEVENT
END:VCALENDAR
};
System.IO.File.WriteAllLines( E:\\Ongoing Projects \\ timessMed \\Dashboard_TM \\calfile \\ + A.task_title + 。ics ,内容);
// 创建.ICS文件的附件
附件mailAttachment = new 附件( E:\\Ongoing Projects \\TimesMed \\Dashboard_TM \\calfile \\ + A.task_title + 。ics);



我将此ics文件发送给用户邮件。

现在我的问题是每次我用来将这个日历文件发送给用户。他们必须打开邮件并为每个新约会添加这个日历文件。



有没有办法直接与谷歌日历同步预约?

我仍​​然在谷歌搜索正确的解决方案。您可以为我指导日历的任何文章或用户指南吗?

希望问题易于理解。抱歉,如果我的语言有任何问题。



先谢谢,

Rajeshwaran T



我尝试了什么:



我已经提到了我试过的代码。

解决方案

请参阅 Google日历约会广告位 - Google搜索 [ ^ ]。

Hi, Actually i'm creating appointments every day to all users. If i create an appointment it should be able to view by the users in their Google Calendar.
Initially I have started this task by creating ".ics" file and i sent to users mail account.
I have taken the following code to create calendar file with the help of Google.

string strDesc = "The new task has been created: " + A.task_title + "";
string[] contents = { "BEGIN:VCALENDAR",
"PRODID:-//Flo Inc.//FloSoft//EN",
"BEGIN:VEVENT",
"DTSTART:" + schBeginDate.ToUniversalTime().ToString("yyyyMMdd\\THHmmss\\Z"), 
"DTEND:" + schEndDate.ToUniversalTime().ToString("yyyyMMdd\\THHmmss\\Z"), 
"LOCATION:" + strLocation, 
"DESCRIPTION;ENCODING=ESCAPED-CHAR:" + strDesc,
"SUMMARY:" + "SKS TASK: "+A.task_title, 
"PRIORITY:3", 
"END:VEVENT", 
"END:VCALENDAR" 
};
System.IO.File.WriteAllLines("E:\\Ongoing Projects\\TimesMed\\Dashboard_TM\\calfile\\"+A.task_title+".ics", contents);
//MAKE AN ATTACHMENT OUT OF THE .ICS FILE CREATED
Attachment mailAttachment = new Attachment("E:\\Ongoing Projects\\TimesMed\\Dashboard_TM\\calfile\\" + A.task_title + ".ics");


And i'm sending this ics file to users mail.
Now what's my problem is each and every time i used to send this calendar file to users. And they have to open mail and add this calendar file for every new appointment.

Is there any way to make an appointment by directly sync with google calendar?
I'm still searching in Google for the correct solution.Can you guide me with any Articles or User guide for Calendar?
Hope the Question is easy to understood. And sorry if anything wrong with my language.

Thanks in Advance,
Rajeshwaran T

What I have tried:

I have mentioned the code what i have tried.

解决方案

See google calendar appointment slots - Google Search[^].


这篇关于如何管理Google日历的约会?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆