我正在尝试从我的C#控制台应用程序内部发送电子邮件.我添加了引用和使用语句,但似乎我没有添加我需要的一切.这是我第一次尝试这样做,所以我觉得有些东西我已经忘记了.
我从MSDN网站获得了这段代码片段http://msdn.microsoft.com/en-us/library/vstudio/ms269113(v=vs.100).aspx

以下是我在VS 2010中遇到问题的代码
using System;
using System.Configuration;
using System.IO;
using System.Net;
using System.Net.Mail;
using System.Runtime.InteropServices;
using Outlook = Microsoft.Office.Interop.Outlook;
using Office = Microsoft.Office.Core;
namespace FileOrganizer
{
class Program
{
private void CreateMailItem()
{
//Outlook.MailItem mailItem = (Outlook.MailItem)
// this.Application.CreateItem(Outlook.OlItemType.olMailItem);
Outlook.Application app = new Outlook.Application();
Outlook.MailItem mailItem = app.CreateItem(Outlook.OlItemType.olMailItem);
mailItem.Subject = "This is the subject";
mailItem.To = "someone@example.com";
mailItem.Body = "This is the message.";
mailItem.Attachments.Add(logPath);//logPath is a string holding path to the log.txt file
mailItem.Importance = Outlook.OlImportance.olImportanceHigh;
mailItem.Display(false);
} …Run Code Online (Sandbox Code Playgroud) 

我是SSRS的新手,需要为我的项目工作(工作不是学校)
我已经实现了要隐藏在表达式上的数据
=IIF(Fields!Offset1.Value = "",true,false)
Run Code Online (Sandbox Code Playgroud)
问题是它留下了空的空间,这些值将出现在我的报告中.我也需要空间消失.任何帮助将不胜感激!!
编辑:忘了提到我从MS Access DB获取数据(如果这很重要)
properties rows visual-studio-2010 reporting-services ssrs-tablix