I am using ASP.NET 2.0 on Windows Media Center edition, and I am pulling from the C# samples folder. I installed PDFCreator in server mode, and I have the instance of PDFCreator running. Here is my C# code:
PDFCreator.clsPDFCreator cc = new PDFCreator.clsPDFCreator();
string sFileName = @"C:\Documents and Settings\Roy\My Documents\Visual Studio 2005\Projects\RTFPDF\db000114849334907828.rtf";
if (!cc.cIsPrintable(sFileName))
Label1.Text = "CANNOT PRINT";
cc.cOptions = new PDFCreator.clsPDFCreatorOptions();
cc.cOptions.UseAutosave = 1;
cc.cOptions.UseAutosaveDirectory = 1;
cc.cOptions.AutosaveDirectory = @"C:\PDF\";
cc.cOptions.AutosaveFormat = 0;
cc.cOptions.AutosaveFilename = "testing";
cc.cSaveOptions(cc.cOptions);
cc.cClearCache();
cc.cPrintFile(sFileName);
When I run this code I see the print box for a quick sec, and then I look for the pdf and I don't see it! What am I doing wrong?