How to write code to print and save the output in my GUI?
I had been searching on code to program print and save commands to print and save the output from the GUI but to no avail. Can someone help me?
The output will be link from the previous GUI page. Hence the output is a page with Jtable and a button for print to print the information in the JTable.
Similar Messages
-
Schedule webi document to printer and save the output in shared drive
Hi all,
Is it possible to schedule a webi document via java BOE SDK, run at once, save the output in pdf format in a shared drive and at the same time, send the output to printer? Or I need to run the webi document to run 2 times? Thanks.
Best regards,
GraceHi Adam,
How about can I schedule a webi document to printer only? In Crystal report, I can do this but seems for webi, no such function?
Best regards,
Grace -
How to write code for totals and subtotals in alv programing?
how to write code for totals and subtotals in alv programing?
hi,
1. <u><b>TOTAL.</b></u>
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_basic.htm
2. <u><b>How do I add subtotals</b></u>
http://www.sapfans.com/forums/viewtopic.php?t=20386
http://www.sapfans.com/forums/viewtopic.php?t=85191
http://www.sapfans.com/forums/viewtopic.php?t=88401
http://www.sapfans.com/forums/viewtopic.php?t=17335
Regards
Anver -
Call a BSP page and save the output
I have a BSP page, and an other one that acts as a report. From the first one I would like to call the second one to save its output as binary data. Can anyone help? Thaks in advance.
This code may help you.
report = 'ZREPORT'.
submit (report) LINE-SIZE 360
with
s_bukrs = '0030' sign 'I'
with s_bldat between FROM_DATE and to_date sign 'I'
EXPORTING LIST TO MEMORY and return.
call function 'LIST_FROM_MEMORY'
tables
listobject = LISTOBJECT
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
store listobject in data base or export to memory. -
How to run commands like "ipconfig" and get the output in adobe AIR in windows?
import flash.desktop.NativeProcess;
import flash.desktop.NativeProcessStartupInfo;
if (NativeProcess.isSupported) {
var npsi:NativeProcessStartupInfo = new NativeProcessStartupInfo();
var processpath:File = File.applicationDirectory.resolvePath("MyApplication.whatever");
var process:NativeProcess = new NativeProcess();
npsi.executable = processpath;
process.start(npsi);
The above can only run a sub-application, but how to run an independent application(command) like ipconfig and get the result?Hi,
here is an example of running a net Use command line from AIR, unig the new NativeProcess. Hope it will help !
function launchProcess()
var file = air.File.applicationDirectory;
// set command path
file = file.resolvePath("C:/Windows/system32/net.exe");
var nativeProcessStartupInfo = new air.NativeProcessStartupInfo();
nativeProcessStartupInfo.executable = file;
// prepare command parameters
var args = new runtime.Vector["<String>"]();
args.push('USE');
args.push('W:');
args.push('/delete');
args.push('/y');
// set arguments
nativeProcessStartupInfo.arguments = args;
// add listeners to catch command outputs
process.addEventListener(air.ProgressEvent.STANDARD_OUTPUT_DATA, onOutputData);
process.addEventListener(air.ProgressEvent.STANDARD_ERROR_DATA, onErrorData);
process.addEventListener(air.NativeProcessExitEvent.EXIT, onExit);
// create and run Native process
process = new air.NativeProcess();
process.start(nativeProcessStartupInfo);
function onOutputData(ProgressEvent)
var processResults = process.standardOutput.readUTFBytes(process.standardOutput.bytesAvailable);
air.trace("Results: \n" + processResults);
function onErrorData(ProgressEvent)
var processResults = process.standardError.readUTFBytes(process.standardError.bytesAvailable);
if(processResults.search('password') > -1){
window.alert('Bad password');
air.trace("Errors: \n" + processResults);
function onExit(NativeProcessExitEvent)
air.trace("Process ended with code: " + NativeProcessExitEvent.exitCode); -
How Can I replace an image and save the same size as the previous?
I want to replace an image in a PDF, but I would like to keep the same size, and location as the previous. I have tried to to it, but the new image takes a different size.
This is a PDF exported from an InDesign template.Thank you.
The problem is that the person to edit the PDF doesn´t have ID and doesn't know how to use it.
The idea is that the design department create very sharp ID templates for people from other departments of the company only have to replace information (text and image).
We are looking for a program to edit PDF files and function as templates forreplacement information. -
I need to convert thousands (yes, really) of wma files to m4a. The wma files are all located in different folders and each converted m4a file needs to end up in the same folder as its respective original wma file. Does anyone know of an application that can do this?
Thanks,
WillI'm not completely sure that MPEG Streamclip can convert AVCHD footage (.mts files). If MPEG Streamclip doesn't do the job, then get a copy of Clipwrap, which was designed for transcoding .mts files to QuickTime/Apple Intermediate Codec (that's the format/codec you need to convert the .mts files to for use in FCE).
-
Need help to write code for 'Print" button......!
Hi all,
I am working in oracle forms 6i.I am creating forms for ordering product/quantity(Entering quantity/product details). In my form i have "Print button" to print the quantity details which is in multi-record block(database item).Please help me of how to write code for print button. If u had any source code please post it.
Please help asap......!
Thanks
regards,
jameYou haven't got an answer or a reply because this question is asked so many times.
Why don't you search the forum to find them? -
Adding numbers in a file a and saving the output in another file.!
can any one pls tell me how to add numbers from a textfile and save the output in another textfile. i'm new with java so pls help out..
Hi Friend,
your statement is not clear, it's bit confuse
this is my unserstanding,
you want to open a file and read the values then add numbers,
latter save the sum in a new file.let me know if this is the thing, I can help u
with Cheers
Prasanna -
How to sign VBA Code in AO and save it on BW-IP side.
Does anybody know if it is possible to sign vba code in AO and save this as Document into BW-IP (to SAP NetWeaver)?
If I try to sign the complete Workbook with a certificate I always get the prompt to convert the file into a Excel file, is it still possible than to save the Workbook to SAPNetWeaver? Anybody tried?Hi,
I have done that many times. Create a button in the toolbar,say 'SAVE'. Write the code in the subroutine user command.For example :
*& Form USER_COMMAND
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
DATA : REF_GRID TYPE REF TO CL_GUI_ALV_GRID.
DATA: L_VALID TYPE C.
*Code to reflect the changes done in the internal table
IF REF_GRID IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = REF_GRID.
ENDIF.
IF NOT REF_GRID IS INITIAL.
CALL METHOD REF_GRID->CHECK_CHANGED_DATA
IMPORTING
E_VALID = L_VALID.
ENDIF.
CASE SY-UCOMM.
WHEN 'SAVE'.
PERFORM BDC."Write all you BDC code in this subroutine
ENDCASE.
ENDFORM.
Hope this will help.
Thanks & Regards,
Rock. -
How to write code for page up and page down buttons on alv screen?
Hi,
Page up and page down buttons are not working in general alv report. Thease buttons are in disable mode. But is stnd. transactions (tcode : fbl5n) these are enabled and working properly, but we can't debug this with /h
How to write code for page up and page down buttons on alv screen?Poonam,
On doing the screen debugging it took me over to Include LSTXWFCC ,kindly check the below code.
module cc_display.
fcode = sy-ucomm(4).
case sy-ucomm(4).
when 'P--'.
perform cc_firstpage.
when 'P-'.
perform cc_prevpage.
when 'P+'.
perform cc_nextpage.
when 'P++'.
perform cc_lastpage.
when 'EX--'.
perform cc_firstcopy.
when 'EX-'.
perform cc_prevcopy.
when 'EX+'.
perform cc_nextcopy.
when 'EX++'.
perform cc_lastcopy.
I guess it can give you some lead.
K.Kiran. -
How to write code for save file directory?
how to write code for save file directory?
how to find usa timezone code using java swing?
i have some code help me
public class ItsInitializer {
private static boolean s_initialized = false;
private ItsInitializer() {
public static synchronized void initialize() {
if (!s_initialized) {
// Modifies default time zone, disables Daylight Saving Time.
TimeZone l_defaultTimeZone = TimeZone.getDefault();
int l_rawOffset = l_defaultTimeZone.getRawOffset();
String l_id = l_defaultTimeZone.getID();
SimpleTimeZone l_simpleTimeZone = new SimpleTimeZone(l_rawOffset,
l_id,
0,
0,
0,
0,
0,
0,
0,
0);
TimeZone.setDefault(l_simpleTimeZone);
s_initialized = true;
2.
long timeMillis = ...;
long time = timeMillis / 1000;
String seconds = Integer.toString((int)(time % 60));
String minutes = Integer.toString((int)((time % 3600) / 60));
String hours = Integer.toString((int)(time / 3600));
for (int i = 0; i < 2; i++) {
if (seconds.length() < 2) {
seconds = "0" + seconds;
if (minutes.length() < 2) {
minutes = "0" + minutes;
if (hours.length() < 2) {
hours = "0" + hours;
3.
import java.text.SimpleDateFormat;
import java.util.Date;
public class Convert {
public String getDateTime(String pattern){
SimpleDateFormat sdf = new SimpleDateFormat(pattern);
return sdf.format(new Date());
* @param args
public static void main(String[] args) {
Convert con = new Convert();
System.out.println(con.getDateTime("hh:mm:ss"));
5.import java.text.SimpleDateFormat;
import java.util.Date;
public class Convert {
public String getDateTime(String pattern){
SimpleDateFormat sdf = new SimpleDateFormat(pattern);
return sdf.format(new Date());
* @param args
public static void main(String[] args) {
Convert con = new Convert();
System.out.println(con.getDateTime("hh:mm:ss"));
[ November 23, 2005: Mess
private Locale locale = Locale.US;
private static final String[] tzStrings = {
"America/New_York",
"America/Chicago",
"America/Denver",
"America/Los_Angeles",
Date now = new Date();
for ( TimeZone z : zones) {
DateFormat df = new SimpleDateFormat("K:mm a,z", locale);
df.setTimeZone(z);
String result = df.format(now);
System.out.println(result);
String date="05/19/2008 04:30 AM (EST)";
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy hh:mm aaa (z)");
TimeZone.setDefault(TimeZone.getTimeZone("PST"));
long millis = sdf.parse(date).getTime();
sdf.setTimeZone(TimeZone.getDefault());
System.out.println(sdf.format(new Date(millis)));
[ November 23, 2005: Mes -
Disable Print and Save button in tooldbar in AxAcroPDFLib.AxAcroPDF
Hi,
I am using AxAcroPDFLib.AxAcroPDF to display pdf files in my C# winform application.
I have a requirement now that for some documents alone i should disable the print and save button in the toolbar of my AxAcroPDFLib.AxAcroPDF window.
I need the rest of the buttons in the toolbar to be working.
Can someone please tell me how to disable these buttons in my c# code. What property i hsould set to my AxAcroPDFLib.AxAcroPDF object to make this happen.
Hoping to get an answer soon.
Thanks and Regards,
Dinesh.NThere is nothing you can do via the C# APIs to disable these buttons.
-
I've attached a VI that I am using to acquire amplitude from Spectrum analyzerse. I tried to connect amplitude ouput to the VI Write Characters To File.vi and Write to Spreadsheet File.vi. Unfortunately when I run continual this VI without interruption, labview ask me many time to enter a new file name to save a new value.
So, How can I do to aquire and save date in the same time and in the same file when I run continual my VI for example during 10 min.
Thank you in advance.
Regards,
Attachments:
HP8563E_Query_Amplitude.vi 37 KBHi,
Your VI does work perfectly. Unfortunately this not what I want to do. I've made error in my last comment. I am so sorry for this.
So I explain to you again what I want to do exactly. I want to acquire amplitude along road by my vehicle. I want to use wheel signal coming from vehicle to measure distance along road. Then I acquire 1 amplitude each 60 inches from spectrum analyzer.
I acquire from PC parallel port a coded wheel signal coming from vehicle (each period of the signal corresponds to 12 Inches). Figure attached shows the numeric signal coming from vehicle, and the corresponding values “120” and “88” that I can read from In Port vi.
So I want to acquire 1 time amplitude from spectrum analyser each 5
period of the signal that I am acquiring from parallel port.
So fist I have to find how can I count the number of period from reading the values “120” and “88” that I am acquiring from In Port (I don’t know the way to count a number of period from reading values “120” and “88”).
Here is a new algorithm.
1) i=0 (counter: number of period)
2) I read value from In Port
3) If I acquire a period
i= i+1 (another period)
4) If i is multiple of 5 (If I read 5 period)
acquire 1 time amplitude and write to the same
file this amplitude and the corresponding distance
Distance = 12*i). Remember each period of signal
Corresponds to 12 Inches).i has to take these
values: 5,10,15,20,25,35,40,45,50,55,60............
5) Back to 2 if not stop.
Thank you very much for helping me.
Regards,
Attachments:
Acquire_Amplitude_00.vi 59 KB
Figure_Algorithm.doc 26 KB -
Hey!
I just graduate from high school.. im gonna study Computer Enginnering. Im working for my family and they need an app that works like iBook. We have the eBooks and then they want me to do an app where they can sell the eBooks and read them. I have Xcode, but I dont know how to write codes or where to begin in all of this. I want to make the app first for iPad but if it can be for both iPad and iPhone better. I just want recommendation and help. Please and Thanks!!hello i hope your having a good day but can you reply to me if you got the codes to make an app because i want to make an app too thanks
Maybe you are looking for
-
Display schedule qty - Month wise in ALV Grid
Hi Experts, I have a requirement to display the schedule line quantities month wise in ALV Grid. The columns sholud be dynamic columns based on the input date range. I got some idea about how to create dynamic ALV but it is not clear to implement in
-
COUNT(DISTINCT) WITH ORDER BY in an analytic function
-- I create a table with three fields: Name, Amount, and a Trans_Date. CREATE TABLE TEST NAME VARCHAR2(19) NULL, AMOUNT VARCHAR2(8) NULL, TRANS_DATE DATE NULL -- I insert a few rows into my table: INSERT INTO TEST ( TEST.NAME, TEST.AMOUNT, TEST.TRANS
-
Hi, All my music files have an exclamation mark on the left and when I tunes asks me to locate a window opens with I Tunes folders but I still cant see my music library . What can i do? Thanks
-
restore reboot macbook
-
My 6 mo old MacPro update has been running 2+hrs w/a spinning ball and a blue background, is this normal?