| | |
Regarding the CrystalReport with asp.net
Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Thread Solved
![]() |
•
•
Join Date: Sep 2007
Posts: 10
Reputation:
Solved Threads: 1
Hi all,
i want to create one crystalreport from following storeprocedure
This is not the actual code but its a demo of original, i'm using this type of code because i want to join two or more databases with supplied database name like
@dbName+"Connection"
where @dbName is the supplied argument
the problem is when i choose this procedure as the database field for the crystal report the select fields (table columns of the query ) are not displaying
i also tried
still it is not working
i dnt want to create a separate dataset or i dnt want to change the logic of the entire.. !!!
any other suggestions are always welcome
Thanks
i want to create one crystalreport from following storeprocedure
SQL Syntax (Toggle Plain Text)
CREATE PROCEDURE dbo.usp_proc1 ( @ID as INT ) as DECLARE @Var1 as VARCHAR(1000); SET @Var1 = ' select ID,Name,Email from Demo where ID='+Convert(VARCHAR,@ID) print @Var1; exec(@Var1);
This is not the actual code but its a demo of original, i'm using this type of code because i want to join two or more databases with supplied database name like
@dbName+"Connection"
where @dbName is the supplied argument
the problem is when i choose this procedure as the database field for the crystal report the select fields (table columns of the query ) are not displaying
i also tried
SQL Syntax (Toggle Plain Text)
CREATE PROCEDURE dbo.usp_proc1 ( @ID as INT ) as DECLARE @Var1 as VARCHAR(1000); SET @Var1 = ' select ID,Name,Email from Demo where ID='+Convert(VARCHAR,@ID) print @Var1; exec(@Var1); /* select '' as ID,'' as Name,'' as Email */
still it is not working
i dnt want to create a separate dataset or i dnt want to change the logic of the entire.. !!!
any other suggestions are always welcome
Thanks
![]() |
Similar Threads
- Printing problem with crystalreportviewer (ASP.NET)
- how to insert textbox and dropdownlist in crystalreport in asp.net2005 with c# (ASP.NET)
- crystalreport in asp.net 2005 with c# (ASP.NET)
- crystal reports runtime design issue (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: validation of textbox in gridview
- Next Thread: CMS
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol ajax alltypeofvideos appliances asp asp.net bc30451 beginner bottomasp.net browser businesslogiclayer c# cac checkbox class commonfunctions compatible content contenttype countryselector courier dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deployment development dgv dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv formatdecimal formview gridview gudi iis javascript listbox menu microsoft mono mouse mssql nameisnotdeclared news novell opera panelmasterpagebuttoncontrols problem redirect registration relationaldatabases reportemail schoolproject security serializesmo.table sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopemnt webdevelopment webprogramming webservice youareanotmemberofthedebuggerusers





