Click here to Skip to main content
15,889,335 members
Home / Discussions / Java
   

Java

 
GeneralRe: POI ShrinkToFit Solution Pin
DaveyM6928-Sep-09 3:09
professionalDaveyM6928-Sep-09 3:09 
GeneralRe: POI ShrinkToFit Solution Pin
427748030-Sep-09 1:07
427748030-Sep-09 1:07 
GeneralRe: POI ShrinkToFit Solution Pin
DaveyM6930-Sep-09 6:24
professionalDaveyM6930-Sep-09 6:24 
GeneralRe: POI ShrinkToFit Solution Pin
427748030-Sep-09 10:46
427748030-Sep-09 10:46 
GeneralRe: POI ShrinkToFit Solution Pin
DaveyM6930-Sep-09 23:18
professionalDaveyM6930-Sep-09 23:18 
GeneralRe: POI ShrinkToFit Solution Pin
42774801-Oct-09 9:43
42774801-Oct-09 9:43 
GeneralImage in Excel Header/Footer Solution Continuation Pin
42774803-Oct-09 4:13
42774803-Oct-09 4:13 
GeneralRe: Image in Excel Header/Footer Solution Continuation Pin
42774803-Oct-09 9:00
42774803-Oct-09 9:00 
Continuing previous post:
Control DOWNLOAD[^]

To use in C#
// using System.IO;
StreamWriter sw = new StreamWriter("HFPicture.txt"); 
            sw.WriteLine("&L&G&C&HPlease treat this document as confidential!");// HeaderFooter formatter i.e. Text,Image, or both
            sw.WriteLine("C:\\image1.gif");// The Image path
            sw.WriteLine("Test.xlsx");// The Excel File Name
            sw.WriteLine("Header");// Header or Footer only (sensitive)
            sw.WriteLine("IMAGE_HEADER_LEFT"); // where you want it IMAGE_ is a must
            sw.WriteLine("C:\\"); // The Excel File Path which is the path of the File Name above
            sw.Close();
            System.Diagnostics .Process .Start ("HFPicturePHPExcel.exe");


To use in Java

// import java.oi.*;
PrintWriter out = new PrintWriter(new File("HFPicture.txt"));
	out.println("&L&G&C&HPlease treat this document as confidential!");// HeaderFooter formatter i.e. Text,Image, or both
        out.println("C:\\image1.gif");// The Image path
        out.println("Test.xlsx");// The Excel File Name
        out.println("Header");// Header or Footer only (sensitive)
        out.println("IMAGE_HEADER_LEFT"); // where you want it IMAGE_ is a must
        out.println("C:\\"); //The Excel File Path which is the path of the File Name above
        out.close();
	Runtime.getRuntime().exec("HFPicturePHPExcel.exe");


Don't forget to read previous post to get the steps before this one.

Hope this helps
Questionhow to set thread affinity in JAVA Pin
evyatar.v25-Sep-09 11:13
evyatar.v25-Sep-09 11:13 
AnswerRe: how to set thread affinity in JAVA Pin
427748025-Sep-09 19:29
427748025-Sep-09 19:29 
GeneralRe: how to set thread affinity in JAVA Pin
evyatar.v25-Sep-09 21:40
evyatar.v25-Sep-09 21:40 
GeneralRe: how to set thread affinity in JAVA Pin
427748026-Sep-09 0:05
427748026-Sep-09 0:05 
QuestionNeed help with hash table Pin
snssewell24-Sep-09 22:21
snssewell24-Sep-09 22:21 
AnswerRe: Need help with hash table Pin
427748025-Sep-09 0:39
427748025-Sep-09 0:39 
GeneralRe: Need help with hash table Pin
snssewell25-Sep-09 19:30
snssewell25-Sep-09 19:30 
QuestionRead SDF using Java Pin
jason975424-Sep-09 21:30
jason975424-Sep-09 21:30 
AnswerRe: Read SDF using Java Pin
427748025-Sep-09 0:36
427748025-Sep-09 0:36 
GeneralRe: Read SDF using Java Pin
jason975425-Sep-09 4:12
jason975425-Sep-09 4:12 
GeneralRe: Read SDF using Java Pin
427748025-Sep-09 8:25
427748025-Sep-09 8:25 
GeneralRe: Read SDF using Java Pin
jason975425-Sep-09 23:47
jason975425-Sep-09 23:47 
GeneralRe: Read SDF using Java Pin
427748026-Sep-09 1:32
427748026-Sep-09 1:32 
GeneralRe: Read SDF using Java Pin
David Skelly28-Sep-09 22:29
David Skelly28-Sep-09 22:29 
QuestionJava Graphics and Desktop Pin
sharkbc24-Sep-09 17:45
sharkbc24-Sep-09 17:45 
AnswerRe: Java Graphics and Desktop Pin
427748024-Sep-09 18:51
427748024-Sep-09 18:51 
GeneralRe: Java Graphics and Desktop Pin
sharkbc24-Sep-09 19:48
sharkbc24-Sep-09 19:48 

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.