Jump to content
gomes4720

chamar um report em oracle forms

Recommended Posts

gomes4720

ola boa tarde,

estou agora a comecar a trabalhar com oracle , preciso de chamar um report mas nao tou consegindo .

estou a tentar usar exemplos da net.

estou a tentar usar este codigo so que nao sei como chamar o report.

eu abro o report em formato web e o endereco que me aparece e este 'C:\Documents and Settings\User\Definições locais\Temp\docroot\f000205936.htm'

seria possivel ajudar me se ffvr.

o nome do ficheiro é 'f'.

/////
declare
report varchar2(60) :='f';
lista_param paramlist;
paramform varchar2(60) := 'no';
begin


lista_param := get_parameter_list('rep_params');
lista_param := create_parameter_list('rep_params');
add_parameter(lista_param ,'paramform',text_parameter, paramform);
run_product(reports,synchronous,report,runtime,filesystem,lista_param);
end;
////

O meu problema e que eu ao carregar no botao onde tenho este codigo nao faz nada.

obrigado

Edited by gomes4720
GeSHi

Share this post


Link to post
Share on other sites
gomes4720

boa tarde

alguem me pode ajudar a resolver este erro

/////

	declare
RO_Report_ID		  REPORT_OBJECT;	
Str_Report_Server_Job VARCHAR2(100);  
 Str_Job_ID			VARCHAR2(100);	Str_URL			   VARCHAR2(100);  
 PL_ID				 PARAMLIST ;BEGIN	  RO_Report_ID := FIND_REPORT_OBJECT('f');	
ADD_PARAMETER(PL_ID, 't',	TEXT_PARAMETER, '');	
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_FILENAME, 'f');  
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_COMM_MODE, SYNCHRONOUS);  
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_EXECUTION_MODE, BATCH);	
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESTYPE, FILE);	
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESFORMAT, 'html');  
 SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_SERVER, '127.0.0.1');	 Str_Report_Server_Job := RUN_REPORT_OBJECT(RO_Report_ID, PL_ID);  
 Str_Job_ID := SUBSTR(Str_Report_Server_Job, LENGTH('127.0.0.1') + 2, LENGTH(Str_Report_Server_Job));	
Str_URL	  := '/reports/rwservlet/getjobid' || Str_Job_ID || '?server=C:\Documents and Settings\User\Ambiente de trabalho';  
 WEB.SHOW_DOCUMENT(Str_URL, 'f');	DESTROY_PARAMETER_LIST(PL_ID);
END;				  

/////

REP-51002: Falha na Associação ao Reports Server c:\documents and settings\user\ambiente de trabalho space.gif

space.gifspace.gif

ok.gif

Edited by gomes4720

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.