Click here to Skip to main content
15,891,941 members
Home / Discussions / System Admin
   

System Admin

 
GeneralRe: Software to make image file Pin
Mekong River31-May-06 3:35
Mekong River31-May-06 3:35 
GeneralRe: Software to make image file Pin
JCParker31-May-06 3:55
JCParker31-May-06 3:55 
GeneralRe: Software to make image file Pin
Mekong River31-May-06 5:24
Mekong River31-May-06 5:24 
QuestionEnumerate Local Machine Users and Groups Pin
JCParker30-May-06 10:08
JCParker30-May-06 10:08 
AnswerRe: Enumerate Local Machine Users and Groups Pin
Mekong River30-May-06 15:20
Mekong River30-May-06 15:20 
GeneralRe: Enumerate Local Machine Users and Groups Pin
JCParker31-May-06 3:56
JCParker31-May-06 3:56 
GeneralRe: Enumerate Local Machine Users and Groups Pin
Mekong River31-May-06 5:21
Mekong River31-May-06 5:21 
QuestionPrinting data to PDF file using driver Pin
mikko laanti30-May-06 8:50
mikko laanti30-May-06 8:50 
Hi all,

I Have following snippets thats should print a line to pdf file using
PDFCreator driver. There is something missing because Acrobat says that file is corrupted, can
anyone help


#include "stdafx.h"

#include <windows.h>

int _tmain(int argc, _TCHAR* argv[])
{
HDC hDC = CreateDC(NULL, "PDFCreator", NULL, NULL);
DOCINFO docinfo;
memset(&docinfo, 0, sizeof(docinfo));
docinfo.cbSize = sizeof(docinfo);
docinfo.lpszOutput = "c:\\temp\\output.pdf";

int result;
result = StartDoc(hDC, & docinfo);
result = StartPage(hDC);
const TCHAR * message = "Some text ...";
result = TextOut(hDC, 100, 100, message, (int) _tcslen(message));
result = EndPage(hDC);
result = EndDoc(hDC);
return 0;
}
AnswerRe: Printing data to PDF file using driver Pin
Chris Meech30-May-06 9:32
Chris Meech30-May-06 9:32 
GeneralRe: Printing data to PDF file using driver Pin
mikko laanti30-May-06 21:54
mikko laanti30-May-06 21:54 
GeneralRe: Printing data to PDF file using driver Pin
Mekong River30-May-06 22:20
Mekong River30-May-06 22:20 
GeneralRe: Printing data to PDF file using driver Pin
Chris Meech31-May-06 4:57
Chris Meech31-May-06 4:57 
GeneralRe: Printing data to PDF file using driver Pin
mikko laanti31-May-06 7:55
mikko laanti31-May-06 7:55 
GeneralRe: Printing data to PDF file using driver Pin
Chris Meech2-Jun-06 3:01
Chris Meech2-Jun-06 3:01 
QuestionRemote desktop connection Pin
x-trate30-May-06 0:11
x-trate30-May-06 0:11 
AnswerRe: Remote desktop connection Pin
Sebastian Schneider30-May-06 0:57
Sebastian Schneider30-May-06 0:57 
GeneralRe: Remote desktop connection Pin
x-trate30-May-06 1:12
x-trate30-May-06 1:12 
GeneralRe: Remote desktop connection Pin
Mekong River30-May-06 15:09
Mekong River30-May-06 15:09 
AnswerRe: Remote desktop connection Pin
JohnAMilburn1-Jun-06 6:10
JohnAMilburn1-Jun-06 6:10 
AnswerRe: Remote desktop connection Pin
S Douglas4-Jun-06 14:40
professionalS Douglas4-Jun-06 14:40 
GeneralRe: Remote desktop connection Pin
x-trate9-Jun-06 5:27
x-trate9-Jun-06 5:27 
GeneralRe: Remote desktop connection Pin
S Douglas9-Jun-06 6:57
professionalS Douglas9-Jun-06 6:57 
QuestionWindows Service Problem Pin
bmurali29-May-06 19:42
bmurali29-May-06 19:42 
QuestionSNMP Proxy Agent?? Pin
mikeyhardingboyo29-May-06 8:53
mikeyhardingboyo29-May-06 8:53 
AnswerRe: SNMP Proxy Agent?? Pin
Mekong River29-May-06 15:43
Mekong River29-May-06 15:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.