我想在同一个页面里打印如下字符
g.DrawString("asdfasdfa",this.Font,Brushes.Black,180.0f,50.0f,new StringFormat());
又想在该页面打印相关word的内容,如何解决??
g.DrawString("asdfasdfa",this.Font,Brushes.Black,180.0f,50.0f,new StringFormat());
又想在该页面打印相关word的内容,如何解决??
解决方案 »
- 如何设置label行间距
- svn提交的时候同时更新web目录文件不成功
- 急求64-bit Microsoft Jet OLEDB.4.0
- 用户sa登录失败该用户与可信sql server连接无关联
- 用C#写sql注入工具,怎样判断页面返回的情况
- 关于连接数据库问题!急啊!
- SQL的一个查询语句请教
- 怎么在.net安装部署项目中指定system32目录
- VC.net和VC++ 到底有哪些区别?
- 请问如何批量删除datatable中的行。
- 在使用NHibernate时出现SqlClient异常,我想看一下NHibernate给我生成的SQL语句,如何察看?
- VS2005集成的测试工具如何测试返回值是DataSet的方法?
#include<unistd.h>
#include<sys/types.h>
#include<sys/ipc.h>
#include<sys/msg.h>
struct msgbuf { int mtype; char mtext[250]; };
int main()
{
int msgid1 = msgget( 6584, 0 );
int msgid2 = msgget( 6585, 0 );
if(msgid1<0 || msgid2<0)
{
printf("false");
return 0;
}
else
{
struct msgbuf * msg1 = (struct msgbuf*)malloc(sizeof(struct msgbuf)+250);
struct msgbuf * msg2 = (struct msgbuf*)malloc(sizeof(struct msgbuf)+250);
int ec =msgrcv( msgid1, msg1, 251, 0, 0);
int ce =msgrcv( msgid2, msg2, 251, 0, 0);
if(ec ==-1)
{
printf("MESSAGE GET ERROR");
return 2;
}
else
{
int m=msg1->mtype;
int k=msg2->mtype; printf("%d/n",m);
printf("%d/n",k);
return 3;
}
}
}
#include<stdio.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/ipc.h>
#include<sys/msg.h>
struct msgbuf { int mtype; char mtext[250]; };
int main()
{
int msgid = msgget( 6584, IPC_CREAT|IPC_EXCL|0666 );
if(msgid<0)
{
printf("false");
return 0;
}
else
{
struct msgbuf * msg = (struct msgbuf*)malloc(sizeof(struct msgbuf)+250);
msg->mtype = 1;
sprintf(msg->mtext, "hello world");
int rc = msgsnd(msgid, msg, strlen(msg->mtext)+1, 0);
msgsnd(msgid, msg, strlen(msg->mtext)+1, 0);
if(rc == -1)
{
printf("send error");
return 1;
}
else
{
printf("ok");
} }
}