Page 1 of 1
HELP - REPORT ERROR
Posted: Mon Feb 27, 2012 4:29 pm
by Alan
When I open my report if I want to shake in their tools, such as: increase or decrease the screen (zoom), save my report in excel or pdf. or view the other pages of my report, it loses the reference parameters that were passed.
Of error, can not do nothing but see the first page. Anything to try to change the error. help me
HELP PLZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
HELP - REPORT ERROR
Posted: Mon Feb 27, 2012 4:51 pm
by Alan
I use Flex Builder and C #.
The parameters such as:
- Name of the Report.
- Filters.
Send all parameters from flex to C #.
Arriving in C # it checks the report and what the parameters and sends pro Stimulsoft, oh then it returns the data in the report for me.
However when viewing other pages of my report he loses reference.
Or give a zoom, or save. All of the error. Help me
See the code:
public partial class GerarRelatorio: System.Web.UI.Page
{
public static String temp = "";
public static String connectionString = "";
public static String AUX;
protected void Page_Load (object sender, EventArgs e)
{
AppDirectory HttpContext.Current.Server.MapPath string = (string.Empty);
StiReport StiReport report = new ();
report.Dictionary.Databases.Clear ();
report.Dictionary.Databases.Add (new Stimulsoft.Report.Dictionary.StiSqlDatabase ("Connection", "patmosweb", "Password = ct7878; Persist Security Info = True; User ID = patmosweb; MultipleActiveResultSets = True; Initial Catalog = patmosweb; Data Source = mssql.patmosweb.com.br; Max Pool Size = 350 "));
Lc_nome_relatorio String = "";
Lc_parametro1 String = "";
Lc_parametro2 String = "";
Lc_parametro3 String = "";
Lc_parametro4 String = "";
NomeRazao String = "";
Invoice String = "";
lc_parametro1 = Request.Form ["parameter1"];
lc_parametro2 = Request.Form ["parameter2"];
lc_parametro3 = Request.Form ["parameter3"];
lc_parametro4 = Request.Form ["parameter4"];
NomeRazao = Request.Form ["NomeRazao"];
Invoice = Request.Form ["Invoice"];
lc_nome_relatorio = Request.Form ["nome_relatorio"];
switch (lc_nome_relatorio)
{
case "environments":
case "Areas":
case "Steps":
case "Processos_de_Fabricacao"
case "Sectors":
case "Sub_Setores"
case "Bancos_Compensacao_Nacional"
case "Contas_Bancarias"
case "Operadoras_de_Cartao"
case "Plano_de_Contas_Financeiro"
case "Unidades_de_Medidas"
case "Tipos_de_Estruturas"
case "Produtos_Servicos"
case "Grupos_de_Estoque_Servicos"
case "_Sintetico Structures":
case "Tipos_Produtos_Servicos"
case "CFOP"
case "NCM"
case "Especie_de_documentos"
case "Checks":
case "Produtos_Servicos_descricao_Grupo_Todos"
case "Grupos_de_Estoque_Servicos_Produtos"
case "Grupos_de_Estoque_Servicos_Servicos"
case "Tipos_Produtos_Servicos_Produtos"
case "Tipos_Produtos_Servicos_Servicos"
case "Estruturas_Analitico"
case "Estruturas_Sintetico"
case "Contas_a_Pagar_Cadastradas"
report ["@ start_date"] = lc_parametro1;
report ["@ end_date"] = lc_parametro2;
break;
}
report.Load (AppDirectory + "\ \" + + lc_nome_relatorio. "MRT");
report.Render ();
= StiWebViewer1.Report report;
}
}
}
HELP - REPORT ERROR
Posted: Tue Feb 28, 2012 8:06 am
by Alex K.
Hello,
Please try to set the RenderMode property to "AjaxWithCache" for StiWebViewer1.
Thank you.
HELP - REPORT ERROR
Posted: Tue Feb 28, 2012 8:31 am
by Alan
I did not understand can you explain?
HELP - REPORT ERROR
Posted: Tue Feb 28, 2012 8:41 am
by Alan
The following error occurred:
lost the reference to my report.
Could not find file 'E: \ My Documents \ Flex Builder Projects \ Patmos \ Project \ CSharp \ WebApplication1 \ Reports \. Mrt'.
i add in my asp.
Gerador de Relatório
HELP :biggrin:
HELP - REPORT ERROR
Posted: Wed Feb 29, 2012 2:45 am
by Alex K.
Hello,
Please send us a sample project which reproduces the issue for analysis.
Thank you.