Click here to Skip to main content
15,905,874 members
Home / Discussions / C#
   

C#

 
AnswerThe easy way Pin
Ennis Ray Lynch, Jr.27-Feb-09 6:02
Ennis Ray Lynch, Jr.27-Feb-09 6:02 
GeneralRe: The easy way Pin
yassir hannoun27-Feb-09 6:17
yassir hannoun27-Feb-09 6:17 
QuestionReduce the resolution of a PDF Pin
abbd27-Feb-09 4:05
abbd27-Feb-09 4:05 
RantRe: Reduce the resolution of a PDF Pin
Curtis Schlak.27-Feb-09 4:08
Curtis Schlak.27-Feb-09 4:08 
Question[sound recording using C#] anyone help me? [modified] Pin
pavelnaru27-Feb-09 3:48
pavelnaru27-Feb-09 3:48 
AnswerRe: [sound recording using C#] anyone help me? Pin
Deresen27-Feb-09 3:54
Deresen27-Feb-09 3:54 
GeneralRe: [sound recording using C#] anyone help me? Pin
EliottA27-Feb-09 5:07
EliottA27-Feb-09 5:07 
JokeRe: [sound recording using C#] anyone help me? Pin
Jim Crafton27-Feb-09 7:18
Jim Crafton27-Feb-09 7:18 
Questionapp.config issue Pin
George_George27-Feb-09 2:56
George_George27-Feb-09 2:56 
AnswerRe: app.config issue Pin
Mirko198027-Feb-09 3:26
Mirko198027-Feb-09 3:26 
GeneralRe: app.config issue Pin
George_George27-Feb-09 22:43
George_George27-Feb-09 22:43 
AnswerRe: app.config issue Pin
Alan N27-Feb-09 3:43
Alan N27-Feb-09 3:43 
GeneralRe: app.config issue Pin
George_George27-Feb-09 22:41
George_George27-Feb-09 22:41 
GeneralRe: app.config issue Pin
Alan N2-Mar-09 3:04
Alan N2-Mar-09 3:04 
GeneralRe: app.config issue Pin
George_George2-Mar-09 3:34
George_George2-Mar-09 3:34 
GeneralRe: app.config issue Pin
Alan N2-Mar-09 5:06
Alan N2-Mar-09 5:06 
GeneralRe: app.config issue Pin
George_George2-Mar-09 19:15
George_George2-Mar-09 19:15 
QuestionInheritance Problem in C# Pin
But_Im_a_Lady27-Feb-09 2:25
But_Im_a_Lady27-Feb-09 2:25 
AnswerRe: Inheritance Problem in C# [modified] Pin
Luc Pattyn27-Feb-09 2:39
sitebuilderLuc Pattyn27-Feb-09 2:39 
GeneralRe: Inheritance Problem in C# Pin
PIEBALDconsult27-Feb-09 4:27
mvePIEBALDconsult27-Feb-09 4:27 
AnswerRe: Inheritance Problem in C# Pin
Curtis Schlak.27-Feb-09 4:07
Curtis Schlak.27-Feb-09 4:07 
QuestionTransform Excel to PDF in A4 format Pin
abbd27-Feb-09 2:06
abbd27-Feb-09 2:06 
Hello, i use this to transform an excel file to pdf :

<br />
static void Main(string[] args)<br />
{<br />
ApplicationClass excelApplication = new ApplicationClass();<br />
Workbook excelWorkBook = null;<br />
<br />
<br />
<br />
string paramSourceBookPath = @"C:\2.xlsx";<br />
object paramMissing = Type.Missing;<br />
<br />
string paramExportFilePath = @"C:\test.pdf";<br />
XlFixedFormatType paramExportFormat = XlFixedFormatType.xlTypePDF;<br />
XlFixedFormatQuality paramExportQuality =<br />
XlFixedFormatQuality.xlQualityStandard;<br />
bool paramOpenAfterPublish = false;<br />
bool paramIncludeDocProps = true;<br />
bool paramIgnorePrintAreas = true;<br />
object paramFromPage = Type.Missing;<br />
object paramToPage = Type.Missing;<br />
<br />
<br />
<br />
try<br />
{<br />
// Open the source workbook.<br />
excelWorkBook = excelApplication.Workbooks.Open(paramSourceBookPath,<br />
paramMissing, paramMissing, paramMissing, paramMissing,<br />
paramMissing, paramMissing, paramMissing, paramMissing,<br />
paramMissing, paramMissing, paramMissing, paramMissing,<br />
paramMissing, paramMissing);<br />
<br />
// Save it in the target format.<br />
if (excelWorkBook != null)<br />
excelWorkBook.ExportAsFixedFormat(paramExportFormat,<br />
paramExportFilePath, paramExportQuality,<br />
paramIncludeDocProps, paramIgnorePrintAreas, paramFromPage,<br />
paramToPage, paramOpenAfterPublish,<br />
paramMissing);<br />
}<br />
catch (Exception ex)<br />
{<br />
Console.WriteLine(ex.ToString());<br />
}<br />
finally<br />
{<br />
// Close the workbook object.<br />
if (excelWorkBook != null)<br />
{<br />
excelWorkBook.Close(false, paramMissing, paramMissing);<br />
excelWorkBook = null;<br />
}<br />
<br />
// Quit Excel and release the ApplicationClass object.<br />
if (excelApplication != null)<br />
{<br />
excelApplication.Quit();<br />
excelApplication = null;<br />
}<br />
<br />
GC.Collect();<br />
GC.WaitForPendingFinalizers();<br />
GC.Collect();<br />
GC.WaitForPendingFinalizers();<br />
}<br />
<br />
<br />
}<br />

But how i can set the file in A4 format? because my excel file is bigger than A4, thank you verry mutch.
QuestionConverting Bmp to monochrom BMP Pin
naeemnimi27-Feb-09 1:05
naeemnimi27-Feb-09 1:05 
AnswerRe: Converting Bmp to monochrom BMP Pin
Calin Tatar27-Feb-09 1:10
Calin Tatar27-Feb-09 1:10 
QuestionProblem in FolderBrowserDialog Pin
sudhi16427-Feb-09 0:55
sudhi16427-Feb-09 0:55 

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.