 |
|
 |
Hello,
Serdar Dirican's ReportCreator does all this (use XML File Specification), plus prints to PDF, HTML, or Image. ReportCreator also includes an exceptional report designer, possibility to incorporate Designer into VS.NET, and more and SOURCE.
I recently incorporated this into an application and I must say it is one of the best reporting tools available for .NET, even before taking into account it's price: Free.
ReportCreator Page on GotDotNet User Samples[^]
-- modified at 10:35 Friday 21st April, 2006
|
|
|
|
 |
|
 |
Jako zanimljiva aplikacija svaka cast.
I have one question
in ReportTest I have toyed little with DynamicReport part
and i noticed difference between:
1. for (int i = 0; i<=10000;i++)
{
theData.Rows.Add(new object[]{i,i*i,i*i*i});
}
and
2. for (int i = 0; i<=10000;i++)
{
theData.Rows.Add(new object[]{"aa","bb","ccc"});
}
second option is faster but i dont get it clearly why? FOR goes in no time for both options (under 2-3 seconds) so its not calculation that is taking time, is there something like graphic cashing ??
Thanks
|
|
|
|
 |
|
 |
I have designed a print in the daReportDesigner, and when I run my code, the print preview looks fine. But, when I print it doesnt print it like the Print Preview. The margins arent right on the actual print, meaning the furthermost column on the right is chopped off and there is a good inch of blank page on the left where it should start. Anyone know how I can get round this? I have set the print margins to 10, 50 , 50 ,10 but it just seems to get overridden by the printer. This is a landsscape print, if that makes any difference
Many Thanks
Ste
|
|
|
|
 |
|
 |
I can't seem to find this information in the article or the archive:
What license is this code distributed under ? Is it allowed to use it in commercial applications ?
|
|
|
|
 |
|
 |
Yes, this version of DaReport package is free to use in commercial applications. However, if you make some major changes in code, use a different assembly name, please.
Predrag Dukanac
|
|
|
|
 |
|
 |
Hello,
thank you for the great tool!
At the moment I try to return a DataTable as DataRow into the main Table.
I need this because of different content and formating in the main table.
is it posible to include the subtables in the xml-formating?
Tim
|
|
|
|
 |
|
 |
Hi, Tim.
Nesting tables is not possible at this moment. Table cells accept object and use it's ToString() function to get display data.
Predrag Dukanac
|
|
|
|
 |
|
 |
Hello,
a really nice tool, but some questions:
How can I provide dynamic data at runtime for text fields, e.g. for printing labels?
How can I use 'parameters'?
Thank you
regards
Herb
|
|
|
|
 |
|
 |
Create TextField in your .xml template file and set its Text value to ${my_parameter}.
Create instance of daPrintDocument in your file.
private daReport.DaPrintDocument daPrintDocument = new daReport.DaPrintDocument();
// set .xml file for printing
daPrintDocument.setXML("reportStatic.xml");
Then, in your code you should generate some string variable that contains your dynamic data.
string myVariable = ...some value to print
Pass your data to report
Hastable t = new Hashtable();
t.Add("my_parameter", myVariable);
daPrintDocument.SetParameters(t);
Parameter names are case sensitive.
Predrag Dukanac
|
|
|
|
 |
|
 |
Typing mistake ...
set Text value to $P{my_parameter}
letter P is missing in previous answer ... P stands for "parameter"
Predrag Dukanac
|
|
|
|
 |
|
 |
How edit name of parameter in DaReport Designer? Only in .xml file?
|
|
|
|
 |
|
 |
Select PrintDocument obect in Object Browser (the root node). Document properties are shown in the PropertyGrid. Select the 'Parameters' property in the PropertyGrid, and the parameters string collection is visible in the editor window. Change your settings here.
Predrag Dukanac
|
|
|
|
 |
|
 |
Thank you
|
|
|
|
 |
|
 |
Hi
i want, picture file name transfered parameter to dareport static content.
help me please
Aslanlar tarihcilerine kavusuncaya kadar, kitaplar avcilari ovecektir.
-- modified at 7:18 Monday 2nd January, 2006
|
|
|
|
 |
|
 |
That issue is not implemented yet. Maybe in next release.
Regards,
Predrag Dukanac
|
|
|
|
 |
|
 |
now no problem.
i'm solution problem,
again thx
Aslanlar tarihcilerine kavusuncaya kadar, Kitaplar avcilari ovecektir.
|
|
|
|
 |
|
 |
Hi, I'm using your DaReport. Just want to know, if there is issue about the printpreviewdialog with your dareport?
Cause, when i'm using it in my project (it using a custom DLL for the project's UI) it shows this error:
An unhandled exception has occured in a component in your application
Object reference not set to an instance of an object
System.NullReferenceException: Object reference not set to an instance of an object.
at System.Windows.Forms.PrintPreviewControl.CalculatePageInfo()
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
I'm using this code:
Dim da As New SqlDataAdapter("Select * from Categories", "user =sa;data source =.;initial catalog=northwind")
Dim ds As New DataSet
da.Fill(ds, "Categories")
Dim pd As New daReport.DaPrintDocument
pd.AddData(ds.Tables("Categories"))
pd.setXML("c:\Categories.xml")
Dim PrintPreviewDialog1 As New PrintPreviewDialog
With PrintPreviewDialog1
.Document = pd
.PrintPreviewControl.Zoom = 1.0
.WindowState = Windows.Forms.FormWindowState.Maximized
.Show()
End With
It works with a regular windows form, but it fails when I'm using it in my project.Any advice?
Thx
Regards,
Alphonsus Eka
|
|
|
|
 |
|
 |
Hello there.
So far, this problem you're writing about didn't come along. If I understand well, you're having problems previewing reports when your GUI's are placed within .dll file, instead of .exe ? Error stack contains no data from daReport.dll ? I'll do some tests in next few days and write back to you.
Predrag Dukanac
|
|
|
|
 |
|
 |
I modify daReport on Paper.cs add a size is US Std Fanfold (1488mm x 1100mm) and on xml papersize changed
but printed result is cut A4 area
why ?
-- modified at 22:24 Monday 12th December, 2005
|
|
|
|
 |
|
 |
As far as I know, if u need to print in custom paper size,
first u need to add the custom paper size in the printer that u want to print. After that, set the printername, set the papersize, then print it.
daReport.DaPrintDocument PrintDoc = new DaPrintDocument();
DataTable theData = new DataTable("printTable");
theData.Columns.Add( new DataColumn("INFO"));
DataRow dr = theData.NewRow();
dr["INFO"] = "TESTING";
theData.Rows.Add(dr);
PrintDoc.AddData(theData);
PrintDoc.setXML("tes2.xml");
//Below is the code to use the custom papersize
PrintDoc.DefaultPageSettings.PrinterSettings.PrinterName = @"\\10.14.9.127\Epson LQ-2180 ESC/P 2";
foreach(PaperSize obj in PrintDoc.PrinterSettings.PaperSizes)
{
if (obj.PaperName.ToUpper().ToString() == "TEST")
{
PrintDoc.DefaultPageSettings.PaperSize = obj;
break;
}
}
//Doesn't really sure about the margin, but I always set it into 0
PrintDoc.DefaultPageSettings.Margins.Bottom = 0;
PrintDoc.DefaultPageSettings.Margins.Left = 0;
PrintDoc.DefaultPageSettings.Margins.Right = 0;
PrintDoc.DefaultPageSettings.Margins.Top = 0;
printPreviewDialog1.Document = PrintDoc;
printPreviewDialog1.PrintPreviewControl.Zoom = 1.0;
printPreviewDialog1.WindowState = FormWindowState.Maximized;
printPreviewDialog1.ShowDialog(this);
Sorry, if I misuderstood ur question. Well, I'm not good in english. Thx, hope it helps.
Regards,
Alphonsus Eka
|
|
|
|
 |
|
 |
Would it be possible to implement static content after dynamic content? For example consider the following document lay-out:
- static content with some header info
- dynamic content with a table
- static content with some explanatory data
- dynamic content with another table
- static content with some conclusion data
Currently you would have to produce several DaPrintDocument objects to achieve this, which is not the ultimate solution considering the white space between the different documents..
I hope you can tell me this will be in the next release
TIA,
J.J. Hendriksen
|
|
|
|
 |
|
 |
Well, it would be too hard to implement such issue at this moment. Here is why. Basicly, you proposed here some kind of flow management, i.e. the layout engine should be able to recognize partial contents and paint them on the page. On the other side, the present layout management is fairly simple and recognizes only fixed position of the page-element (textField,picBox,etc).
Those two approches differ in a their essential beheviour. At this moment I can not think of any way to bridge those differences in a simple manner. I'm affraid that completely new mechanism should be coded to implement such functionality !
Predrag Dukanac
|
|
|
|
 |
|
 |
Is it possible to modify the StyledTable object in order to have a "footer" property containing one or more textboxes?
I could do that, but I need some implementation details because I didnt't have the time to study the code.
I believe this could simulate a "Static content after dynamic content"
|
|
|
|
 |
|
 |
Hello, your idea is very interesting.
What about realization? I can take part.
Regards,
Oleg.
ocherk at gmail.com
|
|
|
|
 |
|
 |
Is it possible to modify the StyledTable object in order to have a "footer" property containing one or more textboxes?
I could do that, but I need some implementation details because I didnt't have the time to study the code.
I believe this could simulate a "Static content after dynamic content"
Bogdan
|
|
|
|
 |