Print directly on AS400 (iSeries)
Hello
I am using Jasper Report as reporting tool in my web application (using websphere as server).
I try to print directly to a printer that is linked with the server. It
works without any problem if the server is a PC. But if the server is
an AS400 (iSeries V6R0 or V6R1), it does not print.
Here is my code:
PrintService service = null;
PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
aset.add(MediaSizeName.ISO_A4);
//list all printers and select the one selected by the user
PrintService[] services3 = PrintServiceLookup.lookupPrintServices(null, null);
for(int k=0;k
if(services3[k].getName().trim().equals(printer.trim())){
service = services3[k];
if(service == null){
System.out.println("PRINTER NOT FOUND->"+printer);
}else{
//printing
File file = new File(realBaseDir + "/" + jrxml +".jrprint");
JasperPrint jasperPrint = (JasperPrint) JRLoader.loadObject(file);
JRExporter exporter = new JRPrintServiceExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
exporter.setParameter(JRPrintServiceExporterParameter.PRINT_SERVICE_ATTRIBUTE_SET, service.getAttributes());
exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PAGE_DIALOG, Boolean.FALSE);
exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, Boolean.FALSE);
exporter.exportReport();
}Here is the exception that is thrown on the AS400 :
5/06/09 11:09:43:186 CEST 000001e5 SystemOut O net.sf.jasperreports.engine.JRException: No suitable print service found.
at net.sf.jasperreports.engine.export.JRPrintServiceExporter.exportReport(JRPrintServiceExporter.java:152)
at com.project.administrator.jasperreport.JasperReport.execute(JasperReport.java:621)
at com.project.srv.tools.scm.ExecuteJasper.(ExecuteJasper.java:134)
at com.project.batches.scm.OrderConfDocument.doProgram(OrderConfDocument.java:25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.project.batches.LaunchJobStateless.Execute(LaunchJobStateless.java:121)
at com.project.batches.LaunchJobStateless.execute(LaunchJobStateless.java:77)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)to solve it, I have added this line in my code (before exporter.exportReport):
exporter.setParameter(JRPrintServiceExporterParameter.PRINT_SERVICE, service);Now I am getting this exception :
5/06/09 9:57:17:748 CEST 0000009b SystemOut O net.sf.jasperreports.engine.JRException: java.awt.print.PrinterException: Not a 2D print service: ISeriesPrintService: PRT06SIG
at net.sf.jasperreports.engine.export.JRPrintServiceExporter.exportReport(JRPrintServiceExporter.java:161)
at com.project.administrator.jasperreport.JasperReport.execute(JasperReport.java:582)
at com.project.srv.tools.scm.ExecuteJasper.(ExecuteJasper.java:134)
at com.project.batches.scm.OrderConfDocument.doProgram(OrderConfDocument.java:25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.project.batches.LaunchJobStateless.Execute(LaunchJobStateless.java:121)
at com.project.batches.LaunchJobStateless.execute(LaunchJobStateless.java:77)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Caused by: java.awt.print.PrinterException: Not a 2D print service: ISeriesPrintService: PRT06SIG
at sun.print.RasterPrinterJob.setPrintService(RasterPrinterJob.java:520)
at net.sf.jasperreports.engine.export.JRPrintServiceExporter.exportReport(JRPrintServiceExporter.java:157)I have this exception on different AS400 on every printers (something
like 30 printers of all types). I just have 1 printer where it works.
I tried to see what was the difference between this printer and the
other but I was not able to find the difference... It is just a
"simple" laser printer like others in the 30 that are not working...
I have also tried to use this code to print (using PrintServiceAttributeSet instead of the service to give the printer) :
PrintServiceAttributeSet serviceAttributeSet = new HashPrintServiceAttributeSet();
serviceAttributeSet.add(new PrinterName(service.getName(), null));
exporter.setParameter( JRPrintServiceExporterParameter.PRINT_SERVICE_ATTRIBUTE_SET, serviceAttributeSet);But the result stay the same.
Do anybody have an idea of what the problem could be? Or where I can find some help for this?
Thanks a lot...
Try running code like this to list the docFlavors each printer supports, it may show something useful.
import javax.print.DocFlavor;
import javax.print.PrintService;
import javax.print.PrintServiceLookup;
public class DocFlavorLister
public static void main(String args[])
PrintService[] allServices =
PrintServiceLookup.lookupPrintServices(null, null);
for (PrintService ps : allServices)
System.out.println(ps + " supports :");
DocFlavor[] flavors = ps.getSupportedDocFlavors();
for (int i = 0; i < flavors.length; i++)
System.out.println("\t" + flavors);
Similar Messages
-
AS400 (iSeries) Printing to HP LaserJet M5035 MFP Tray 3
Hi,
Am trying to print from (iSeries) AS400 to tray 3 of HP LaserJet M5035, but the print keeps on diverting to tray 2 (A4). The iSeries is sending the job as A3, so one would assume the printer would print this job to tray 3 (A3), but it does not... Support have looked at the printer config on the iSeries and can do nothing more to change the tray... Does the M5035 have a setting that needs to be changed to allow this... ?I just spent the last two days on this and have finally sorted it out. It actually isn't that hard to do but for some reason, no one has consolidated the information in one place!
First and foremost, make sure that you have all the latest and greatest firmware updates for your printer, your computer and your mobile devices.
Next, you need to connect your printer to your network via an ethernet cable, this is the only way to get in to the printer softare to configure it for your wireless network.
Navigate the printer menus on the keypad to Reports>Config Report and print this report. It will provide you with the IP adress and IPv4 address for the printer.
With the printer connected to your network and powered on, point your browser to the IP address of the printer. If this doen't work (it didn't for me) use the IPv4 address.
This will open the configuration panel for the printer and will let you configure the wireless for the printer so that it can join your wireless network. You will see various tabs across the top. Select network. Then along the left you will see wireless. Choose that. Now you should see a list of wireless networks available including your very own home network. Choose that one, enter your password and hit apply.
Disconnect the ethernet cable and you should be ready to Airprint from all devices. This worked for me, I can't imagine it won't work for all...then again... -
Report Print Directly to Client Printer in Linux
Hi,
I m doing migration of Forms and Reports from 6i to 10g.
In this 6i form contain the Direct Report Print to Client Printer.
But in 10g, How to achive this,
I don't want to show the report in screen, i want directly report goes to Client Default Printer for Printing Purpose.
Can any one tel me if you have any solution.
Thanks
GanyThanks For you reply,
I already tried this, But I don't Know ,how to create Java Bean.
So Any Other Method is there.
If Any one know any other Solution for Print Directly to Client Printer.
Thanks,
Gany -
Crystal report print directly without crystal viewer
HI !
In my addon i use Crystal Report. What would be the code i need to add if i want to print directly instead of having to go thru the crystal viewer.
The crystal viewer gives me lots of problems with painting the screen when i move the form and it allways opens in the task bar. I cant seem to control the window sizes of the viewer either so unless it's easyer to fix those problem i need help to go and print direct without the viewer....
Thanks for your timeHi John !
I finnaly made it work...
here's what i used
Dim objAppl As New CRAXDRT.Application
Dim objReport As CRAXDRT.Report
objReport = objAppl.OpenReport("C:Program FilesSAPSAP Business OneAddOnsDutiesresultat.rpt")
objReport.PrintOut(True, 1)
Thanks alot for your time.
p.s.: I can i get the print window open on the screen instead of the task bar ??? it did that with the viewer too...
Thanks again -
Form9i open word and print direct to printer
I upgraded developer forms 6i to 9i and found problem in case of print direct to printer.
The report was not create from develop reports but it create from Microsoft Word.
I generate this report via developer forms call function to generate microsoft word and print it directly not preview but I found the problem when I printed it directly to printer. It didn't have any response from printer although I set up printer at printer server machine already.
I try to test other printers and do the same but the problem still occur.
My platform for testing shown as follow :
ORACLE DBMS 9i
Develop Form 9i
Microsoft Word 97, XP
Windows 98, XP
Thank you for your suggestion.
Best Regards,
Pongsak S.
Thailand
[email protected]Use DESTYPE=PRINTER.
http://docs.oracle.com/cd/E14571_01/bi.1111/b32121/pbr_cla005.htm#i637246 -
How to print directly to printer using USB and Bluetooth from Java (J2ME) app.
I write mobile phone apps in Java (J2ME). I want to print directly to a printer via USB and via Bluetooth. I cannot use a print job with the Java available to me. Once upon a time you could just send text and print control characters to a printer. I would like to be able to do that again. Alternatively could you provide a 'skeleton' data stream into which I could insert my code to produce what is sent to the printer when a print job is used with Java on a laptop or PC. I just want to sent simple text with a little formatting.
Hi,
As far as printing to devices not all devices support Bluetooth. Many devices support Bonjour protocal, IPP. The main print port is 9100. Additionally you can see what IO protocols are supported on a product by looking at the EWS (Embedded WebServer) there should be a networking page with that information. Port 9100 is your basic print port and different devices will support different formats (PDF, JPEG, PCL5, PCL6). If there is an API you can find (i am not familiar with J2ME availible calls, then you can use those and send the data to port 9100. Again that is the basic path most printers will accept. not all devices support bonjour not all device support bluetooth etc... Hope that helps and good luck.
I am an HP Employee. -
Printing Directly To Printer Does Not Work
Dear Friends,
We have a label report that can only be printed when it has been previewed first.
However, printing this report directly to the selected printer raises the error message ' Protocol Error' and printing stops.
What could be the problem and how can that be resolved ?
Thank you in advance for your help.Hello Bhushan,
Thank you for the reply.
Version os CR with SP level.
The report was designed with SAP Crystal Reports 2011 and the version of the runtimes currently deployed is CRforVS_redist_install_32bit_13_0_8.
Version of VS
Version of Visual Studion is 2010.
Win or web app?
It is a Windows application.
Report is printed using code or viewer print button?
The report is printed via code.
What is the exact error, post the stack trace?
The exact error is simply 'Protocol Error' on the printer display.
Does the issue occur on dev or production machine?
The error occurs on a Production environment.
Is this printer specific?
Yes, the exact printer in use is CAB A4+/300.
Could you print the report to PDF printer or MS XPS writer?
The report can be printed directly to PDF or MS XPS writer without any error. It's just to this printer where the error occurs.
I will be glad to provide more information if needed.
Thank you. -
How we can print directly a report without preview to a local printer in web
How we can print directly a report without preview to a local printer in web-environment, whith Oracle 9ias Report server release 6i patch 11.
The user want to print ticket, built by Oracle Report, without previuw on PDF format, in a web three-tier environment.
Please supply my documentation in detail and sample code if you can.Hello,
Take a look to the example provided in the note :
Note.253881.1 How to Create a Report With a Frame Only on the Last Page at a Fixed Position
Regards -
Delimited output of report that contains frames with Print Direction = 'Across'
Hello all.
On the header section of my report, I have a frame with Print Direction = 'Across'.
On screen the output is :
Value1 Value2 Value3 Value 4
I want to export this report to excel, by using DELIMITED option. However the output I'm getting is :
Value1
Value2
Value3
Value4
e.g., reports is not generating several columns (one for each field), but separate lines.
Anyone knows how to accomplish delimited output of frames with Print Direction='Across' ?
Thanks in Advance,
OctavioIf you're not generating both bitmap and delimited data from the same report, try using character mode output rather than "delimited". You can create the report to generate the appropriately delimited values to a text file. This will also give you greater control over aspects such as headings.
Delimited output simply uses the structure of the layout. It doesn't take into account the across/down repeat directions except in the case of matrix. -
Hi Guys
Could anyone correct me how can I print directly to the printer from this program ,I am getting short dump error when I select the radio button printer and execute it.
Rgds
PEoops sorry here it is below
REPORT Z_ESLP_ZTCODE LINE-SIZE 132 .
*TABLES
TABLES : AGR_TCODES,
AGR_USERS,
TSTCT,
T16FW,
T16FD.
type-pools: slis. "ALV Declarations
CONSTANTS MARK VALUE 'X'.
TYPES: BEGIN OF T_DISP,
AGR_TCODES TYPE AGR_TCODES-TCODE , " Transaction code A
AGR_NAME TYPE AGR_TCODES-AGR_NAME, " Role Name B
AGR_UNAME TYPE AGR_USERS-UNAME, " Short User Name B
TTEXT TYPE TSTCT-TTEXT, " Description Name C
TEXTC TYPE USER_ADDR-NAME_TEXTC, " Long User Name
SPRSL TYPE TSTCT-SPRSL , " Language c
TEL_EXTENS TYPE USER_ADDR-TEL_EXTENS , " Extension
DEPARTMENT TYPE USER_ADDR-DEPARTMENT , " Department Name B
FRGGR TYPE T16FW-FRGGR,
FRGCO TYPE T16FD-FRGCO,
OBJID TYPE T16FW-OBJID,
FRGCT TYPE T16FD-FRGCT,
SPRAS TYPE T16FD-SPRAS,
END OF t_disp.
DATA: it_disp TYPE STANDARD TABLE OF t_disp INITIAL SIZE 0,
wa_disp TYPE t_disp.
DATA: params like pri_params,
days(1) type n value 2,
count(3) type n value 1,
valid type c.
*ALV data declarations
data: fieldcatalog type slis_t_fieldcat_alv with header line,
gd_tab_group type slis_t_sp_group_alv,
gd_layout type slis_layout_alv,
gd_repid like sy-repid,
gt_events type slis_t_event,
gd_prntparams type slis_print_alv.
parameter: p_trigr type c default space.
SELECTION PARAMETER CRITERIA
SELECTION-SCREEN BEGIN OF BLOCK BLK WITH FRAME.
SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS:
P_TCODE FOR AGR_TCODES-TCODE , "OBLIGATORY, "no-extension no intervals,
U_NAME FOR AGR_USERS-UNAME,
R_NAME FOR AGR_USERS-AGR_NAME .
SELECTION-SCREEN END OF BLOCK BLK1.
SELECTION-SCREEN BEGIN OF BLOCK BLK2 WITH FRAME TITLE TEXT-002.
SELECTION-SCREEN END OF BLOCK BLK2.
SELECTION-SCREEN END OF BLOCK BLK.
SELECTION-SCREEN BEGIN OF BLOCK radio WITH FRAME.
PARAMETERS :
scr RADIOBUTTON GROUP rbg1 ,
Pr RADIOBUTTON GROUP rbg1 .
SELECTION-SCREEN END OF BLOCK radio.
*Start-of-selection.
START-OF-SELECTION.
perform data_retrieval.
perform build_fieldcatalog.
perform build_layout.
perform build_events.
perform build_print_params.
perform display_alv_report.
*& Form BUILD_FIELDCATALOG
Build Fieldcatalog for ALV Report
form build_fieldcatalog.
fieldcatalog-fieldname = 'AGR_UNAME'.
fieldcatalog-seltext_m = 'User'.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 10.
fieldcatalog-emphasize = 'X'.
fieldcatalog-key = 'X'.
fieldcatalog-do_sum = 'X'.
fieldcatalog-no_zero = 'X'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'TEXTC'.
fieldcatalog-seltext_m = 'Name'.
fieldcatalog-outputlen = 60.
fieldcatalog-col_pos = 1.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'AGR_NAME'.
fieldcatalog-seltext_m = 'Role Name'.
fieldcatalog-outputlen = 15.
fieldcatalog-col_pos = 2.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'AGR_TCODES'.
fieldcatalog-seltext_m = 'Trans Code'.
fieldcatalog-col_pos = 3.
fieldcatalog-outputlen = 20.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'TTEXT'.
fieldcatalog-seltext_m = 'Description'.
fieldcatalog-outputlen = 70.
fieldcatalog-col_pos = 4.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
endform. " BUILD_FIELDCATALOG
*& Form BUILD_LAYOUT PRINTER SETUP
PRINTER SETUP
form printer_setup.
DATA:L_PARAMS TYPE PRI_PARAMS,
L_VALID TYPE C.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
IMMEDIATELY = ' '
LINE_SIZE = 220
RELEASE = 'X'
MODE = 'CURRENT'
NO_DIALOG = ' '
IMPORTING
OUT_ARCHIVE_PARAMETERS =
OUT_PARAMETERS = L_PARAMS
VALID = L_VALID
EXCEPTIONS
ARCHIVE_INFO_NOT_FOUND = 1
INVALID_PRINT_PARAMS = 2
INVALID_ARCHIVE_PARAMS = 3
OTHERS = 4.
IF SY-SUBRC eq 0.
ENDIF.
"But it will take default printer from user settings
NEW-PAGE PRINT ON PARAMETERS L_PARAMS NO DIALOG.
write : 'print is on'.
NEW-PAGE PRINT OFF.
DATA: PARAMS LIKE PRI_PARAMS,
ARPARAMS LIKE ARC_PARAMS,
DAYS(1) TYPE N VALUE 2,
COUNT(3) TYPE N VALUE 1,
VALID TYPE C.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING DESTINATION = 'LOCL'
COPIES = COUNT
LIST_NAME = 'Z_ESLP_ZTCODE'
LIST_TEXT = 'SUBMIT ... TO SAP-SPOOL'
IMMEDIATELY = 'X'
RELEASE = 'X'
NEW_LIST_ID = 'X'
EXPIRATION = DAYS
LINE_SIZE = 79
LINE_COUNT = 120
LAYOUT = 'X_44_120'
SAP_COVER_PAGE = 'X'
COVER_PAGE = 'X'
RECEIVER = 'SAP*'
DEPARTMENT = 'System'
SAP_OBJECT = 'RS'
AR_OBJECT = 'TEST'
ARCHIVE_ID = 'XX'
ARCHIVE_INFO = 'III'
ARCHIVE_TEXT = 'Description'
NO_DIALOG = ' '
IMPORTING OUT_PARAMETERS = PARAMS
OUT_ARCHIVE_PARAMETERS = ARPARAMS
VALID = VALID.
IF VALID <> SPACE.
SUBMIT RSTEST00 TO SAP-SPOOL
SPOOL PARAMETERS PARAMS
ARCHIVE PARAMETERS ARPARAMS
WITHOUT SPOOL DYNPRO.
ENDIF.
endform. " BUILD_LAYOUT
*& Form BUILD_LAYOUT
Build layout for ALV grid report
form build_layout.
gd_layout-no_input = 'X'.
gd_layout-colwidth_optimize = 'X'.
gd_layout-totals_text = 'Totals'(201).
gd_layout-totals_only = 'X'.
gd_layout-f2code = 'DISP'. "Sets fcode for when double
"click(press f2)
gd_layout-zebra = 'X'.
gd_layout-group_change_edit = 'X'.
gd_layout-header_text = 'helllllo'.
endform. " BUILD_LAYOUT
*& Form DISPLAY_ALV_REPORT
Display report using ALV grid
form display_alv_report.
gd_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
i_callback_user_command = 'USER_COMMAND'
i_grid_title = outtext
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
it_special_groups = gd_tabgroup
it_events = gt_events
is_print = gd_prntparams
i_save = 'X'
is_variant = z_template
tables
t_outtab = it_disp
exceptions
program_error = 1
others = 2.
if sy-subrc EQ 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform. " DISPLAY_ALV_REPORT
*& Form DATA_RETRIEVAL
Retrieve data form lfa1 table and populate itab it_lfa1
form data_retrieval.
CASE MARK.
WHEN scr.
SELECT AGR_TCODESTCODE AGR_TCODESAGR_NAME AGR_USERSUNAME TSTCTTTEXT USER_ADDR~NAME_TEXTC
INTO TABLE IT_DISP
FROM AGR_TCODES
INNER JOIN AGR_USERS
ON AGR_TCODESAGR_NAME = AGR_USERSAGR_NAME
INNER JOIN USER_ADDR
ON AGR_USERSUNAME = USER_ADDRBNAME
INNER JOIN TSTCT
ON AGR_TCODESTCODE = TSTCTTCODE
where
agr_tcodes~tcode in p_tcode
and
agr_users~uname in u_name
and
agr_tcodes~agr_name in r_name
and
TSTCT~SPRSL EQ 'E'.
WHEN pr.
perform printer_setup.
ENDCASE.
*lifnr
*between '0000100001' AND '0000150000'.
endform. " DATA_RETRIEVAL
Release memory no longer required.
free: it_lfa1 .
Form TOP-OF-PAGE *
ALV Report Header *
Form top-of-page.
*ALV Header declarations
data: t_header type slis_t_listheader,
wa_header type slis_listheader,
t_line like wa_header-info,
ld_lines type i,
ld_linesc(10) type c.
Title
wa_header-typ = 'H'.
wa_header-info = 'Transaction codes by User and Role Name ' .
append wa_header to t_header.
clear wa_header.
Date
wa_header-typ = 'S'.
wa_header-key = 'Date: '.
CONCATENATE sy-datum+6(2) '.'
sy-datum+4(2) '.'
sy-datum(4) INTO wa_header-info. "todays date
append wa_header to t_header.
clear: wa_header.
Total No. of Records Selected
describe table it_disp lines ld_lines.
ld_linesc = ld_lines.
concatenate 'Total No. of Transaction Records Selected: ' ld_linesc
into t_line separated by space.
wa_header-typ = 'A'.
wa_header-info = t_line.
append wa_header to t_header.
clear: wa_header, t_line.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = t_header.
i_logo = 'Z_LOGO'.
endform.
FORM USER_COMMAND *
--> R_UCOMM *
--> RS_SELFIELD *
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
Check function code
CASE r_ucomm.
WHEN '&IC1'.
Check field clicked on within ALVgrid report
IF rs_selfield-fieldname = 'TCODES'.
Read data table, using index of row user clicked on
READ TABLE it_disp INTO wa_disp INDEX rs_selfield-tabindex.
Set parameter ID for transaction screen field
SET PARAMETER ID 'BES' FIELD wa_disp-tcode.
Sxecute transaction zven, and skip initial data entry screen
CALL TRANSACTION 'Z' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM.
*& Form BUILD_EVENTS
Build events table
form build_events.
data: ls_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = gt_events[].
read table gt_events with key name = slis_ev_end_of_page
into ls_event.
if sy-subrc = 0.
move 'END_OF_PAGE' to ls_event-form.
append ls_event to gt_events.
endif.
read table gt_events with key name = slis_ev_end_of_list
into ls_event.
if sy-subrc = 0.
move 'END_OF_LIST' to ls_event-form.
append ls_event to gt_events.
endif.
endform. " BUILD_EVENTS
*& Form BUILD_PRINT_PARAMS
Setup print parameters
form build_print_params.
gd_prntparams-reserve_lines = '3'. "Lines reserved for footer
gd_prntparams-no_coverpage = 'X'.
endform. " BUILD_PRINT_PARAMS
*& Form END_OF_PAGE
form END_OF_PAGE.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
write: sy-uline(50).
skip.
write:/40 'Page:', sy-pagno .
endform. -
Print directly to the printer option in the Windows registry
I need to find the location for the option to "Print directly to the printer" in the Windows registry. I am trying to create a GPO to enable this option at login and I can't find the location for it. Is this possible to do? If not, is there another way to enable this at startup for all users? We are running Adobe Acrobat X on Windows 7 Enterprise 32-bit.
ThanksI guess that those of use responding don't know enough about the process you are trying to implement to be of help. Printing to network drives has been an issue for folks for a long time and a lot seems to depend on the network. That is probably of zero help and all I can suggest is just to hang on for someone who hopefully has an idea. If we can get a better handle on what you are trying to do, we might be able to make suggestions. However, I think our answers are not going to be there for the registry issue.
-
Print directly to the printer from Oracle 9I
Please it is possible to print directly to the printer from Oracle 9i without having to show the report on the web.
Please it is possible to print directly to the printer from Oracle 9i without having to show the report on the web.
-
Server created print ques printing directly to the printer
I'm trying to enforce quotas as well as push out a global set of printers (i.e. not setup locally) I can do this no problem, but my managed macs always print directly to the printer, not via my server.
I'm installing the printers locally on my server (printing directly to the I.P of the printer, then the corresponding ques appear automatically in the print service under server admin. I assumed that print jobs would be automatically parsed via the print service ques, and thus be able to enforce quotas.I'm attempting to setup the very same thing. I haven't gotten to try pushing the print ques to the managed clients via wgm yet, as I can't even seem to get the quota system working at all.
I can get the que setup on the server, then add the printer to the client. When i pause the que on the server, the client print jobs are being held correctly, but there is no evidence that the quota system is even starting up or functioning correctly.
I can find alot of people complaining about the quota system being broken in 10.3 and 10.4, but I can't find anyone talking about 10.5's printer quota system at all. -
How can I print directly from my iPad to my new Primax 3260 printer when I have no computer? Do I need a portable one to one Router for the wiFi connection. My Internet is through Telstra 3G system.
Is your printer a wifi printer or hard wired only? If it's a wifi printer then you might want to look into third party apps like Print n Share or Print Central which allow a version of air printing to non-air print printers.
You may also want to look on the manufacturer's site. Maybe they have a fix for you.
If your printer isn't wifi, then you will need a router to get it on a wifi network to print to it. As far as I know, there is no support for the iPad to do wired printing. -
I am a new iPad (wi fi version) owner but not the new iPad 2. I have a home wireless network and have a HP Officejet J6480 wireless printer. I print from my iMac and Powerbook directly using the wireless network and want to print directly from my iPad also. Do I need a special app for this or can I do this with something already "built-in" to the operating system of the iPad.
Welcome to Apple Support Communities.
If you're comfortable going 'under the hood', this thread originally started in November 2010 contains a minor tweak to OS X that might work for you:
https://discussions.apple.com/thread/2658720?threadID=2658720&tstart=0
It allows devices on iOS 4.2 or newer to print to shared wired and wireless printers as long as the Mac is on and awake.
Maybe you are looking for
-
Update 10.6.8 and the combo pack v1.1 but java applets still not working
Checked all the java settings in the browsers and in java preferences and they are correct. Tried both Firefox 5.0.1 and Safari 5.0.5 (6533.21.1) neither worked. Runing Java SE 6 (both 64 and 32 bit) version 1.6.0_26-b03-384 Even tried to uncheck and
-
i Need help on how to setup the WINS part of DHCP can any one help ? what should my settings be for ? WINS/NBNS PRIMARY SERVER: WINS/NBNS SECONDARY SERVER: NBDD SERVER: NBT NODE TYPE: netBIOS SCOPE ID: i have DNS, SMB, AFP, Open Directory all setup j
-
How do I install the 2.0 firmware?
I installed the itunes 7.7 update, then plugged in my iphone. Nothing pops up, so then I click the 'check for update' button and it says "The version of the iPhone software (1.14) is the current version.". How to I get the 2.0 update? Anyone know wha
-
Hi guys, the treetable component is probably one of the more powerful components I've ever come across, but the availability is rather scarse. In this light, I was wondering what are the alternatives to the same? Thanks, karthikeyan.r
-
Hi, I'm currently making my art website. I have a gallery page with thumbnails around the border and when you rollover them a bigger version appears in the centre of the page. My problem is that even though I have put hide onload on the larger image,