Quantcast
Channel: VBForums - Reporting
Viewing all 589 articles
Browse latest View live

VS 2012 and Crystal - Display Image at RUN TIME

$
0
0
I have been looking both here and google for this.

I have a SQL database. Contains a table with a path to a jpg per felon. I want to, at run time, get this image and print it on my report.
It (the image) will live in the DetailSection1 of my rpt which is called FelonList and the image object is just called Picture1.

Using VB as the code behind.

Help and how and help some more.......

gollnick

[RESOLVED] Crystal Report 8.5 Getting Total Amount

$
0
0
Hi, Good Day!
I need some help since I'm just new with crystal report.
I actually try to have some research in google but I failed maybe because I don't know right keyword.

Name:  untitled.jpg
Views: 89
Size:  18.0 KB

What I want to achieve is to get the total for every classification.

For Example:

MEAT 240.00
GROCERY 5,435.00

GRANDTOTAL: 5,675.00


Name:  database.jpg
Views: 103
Size:  5.6 KB
Attached Images
  

Crystal with mysql and datagidview

$
0
0
Hi

I have a datagridview bound in a mysql table.
How i can create a report retrieving data from a selected datagridview row?

thank you.

[RESOLVED] Crystal with mysql and datagidview

$
0
0
Hi

I have a datagridview bound in a mysql table.
How i can create a report retrieving data from a selected datagridview row?

thank you.

Reports not visible when DB run with main window hidden.

$
0
0
Hi
I have a DB that auto hides the main Access window upon opening. When I run it in that mode and try to open a report from a form (I also want the form to be hidden at this point so it is set to visible = false) the whole application disappears, the app just shows in task manager as MS Access and the only thing I can do is end task. I am obviously missing some knowledge on the relationship between reports and the main DB window, does it have to be visible for the report to be displayed? I don't want the end users to be able to format or change it in anyway so having the whole ribbon display is overkill in my view, I just want them to be able to browse the report with as little as possible on screen.

Any assistance would be greatly appreciated.

TIA
Andrew

Need to justify currency when samll or large amounts

$
0
0
Hello.
I'm trying to justify correctly the vertical amounts (see picture)
I'm going to format object but I am not sure how can i fix this.
Any help?
Thanks.
Name:  Clipboard01.jpg
Views: 40
Size:  4.6 KB
Attached Images
 

Get date from table according to a pre - stored procedure run.

$
0
0
Hi.
We have a custom program here that will create a table according to a selection of a parameter and then run a crystal report on that table.
My Question is , can I get the pre stored procedure value to the crystal report so it can select the columns i want?
For example can I run the stored procedure that fills the table with an output parameter (like 1,2,3) and then crystal report can view the table but also get the stored procedure output parameter and do a selection according to that parameter?
I haven't used CR like this for quite a long time so I would appreciate any help.
That bottom line is:
Custom program (not ours), runs an insert stored procedure, I would try to find how to output a value from that stored procedure.
Crystal reports must view the table data by that outputed stored procedure, or if you can think any other way I would appreciate that.
thanks.

Weird Dash in SSRS

$
0
0
I have an odd issue in SSRS. there's a weird Dash appearing in a textbox:-
Name:  Dash.PNG
Views: 37
Size:  1.3 KB

I have no idea where this is coming from.

Here's the xml for that textbox:-
xml Code:
  1. <Textbox Name="Textbox96">
  2.         <CanGrow>true</CanGrow>
  3.         <KeepTogether>true</KeepTogether>
  4.         <Paragraphs>
  5.           <Paragraph>
  6.             <TextRuns>
  7.               <TextRun>
  8.                 <Value>=First(Fields!ID6C.Value, "dsPerson")</Value>
  9.                 <ActionInfo>
  10.                   <Actions>
  11.                     <Action>
  12.                       <Hyperlink>="javascript:void(window.open('MyServer?/BCC Reporting/Troubled Families/ThinkFamiliesReporting/Person Indicator Detail&amp;PersonID=" + cstr(Parameters!PersonID.Value) + "&amp;IndicatorCode=6C&amp;rc:Parameters=false','_blank'))"</Hyperlink>
  13.                     </Action>
  14.                   </Actions>
  15.                 </ActionInfo>
  16.                 <Style>
  17.                   <FontSize>7pt</FontSize>
  18.                   <Color>=iif(isNothing(First(Fields!ID6C.Value, "dsPerson")), "Black", "White")</Color>
  19.                 </Style>
  20.               </TextRun>
  21.             </TextRuns>
  22.             <Style />
  23.           </Paragraph>
  24.         </Paragraphs>
  25.         <rd:DefaultName>Textbox12</rd:DefaultName>
  26.         <ActionInfo>
  27.           <Actions>
  28.             <Action>
  29.               <Hyperlink>="javascript:void(window.open('http://MyServer?/BCC Reporting/Troubled Families/ThinkFamiliesReporting/Person Indicator Detail&amp;PersonID=" + cstr(Parameters!PersonID.Value) + "&amp;IndicatorCode=6C&amp;rc:Parameters=false','_blank'))"</Hyperlink>
  30.             </Action>
  31.           </Actions>
  32.         </ActionInfo>
  33.         <Top>11.01518cm</Top>
  34.         <Left>30.35355cm</Left>
  35.         <Height>0.4cm</Height>
  36.         <Width>2.27839cm</Width>
  37.         <ZIndex>88</ZIndex>
  38.         <ToolTip>=First(Fields!ID6C.Value, "dsIndicatorValueDescriptions")</ToolTip>
  39.         <Style>
  40.           <Border>
  41.             <Style>Solid</Style>
  42.           </Border>
  43.           <BackgroundColor>=iif(isNothing(First(Fields!ID6C.Value, "dsPerson")), "White", "Green")</BackgroundColor>
  44.           <PaddingLeft>2pt</PaddingLeft>
  45.           <PaddingRight>2pt</PaddingRight>
  46.           <PaddingTop>2pt</PaddingTop>
  47.           <PaddingBottom>2pt</PaddingBottom>
  48.         </Style>
  49.       </Textbox>

The value being returned from the dataset is NULL.

When I hover the mouse over the dash the cursor turns to a text selection cursor, implying that the dash is "real" text but I can't actually select it. I've even removed the text box and then put a new one on the report - the dash is still there.

Anyone got any suggestions as to where this might be coming from? I've looked at everything I can think of and I'm completely stumped.

Edit> A couple of other clues: It doesn't appear when I preview the report in visual studio. It does appear once deployed in IE, Chrome and Firefox. Deleting the deployed report and redeploying doesn't get rid of it.
Attached Images
 

[RESOLVED] Help with an If then statement in Report Builder

$
0
0
Hi Guys,

Can you help me get a start on report builder?
Im OK with Vb and struggle by but just started trying to create a report and hit a wall.

I have a field called Total, Amount and one for frequency -
The idea was if frequency was "monthly" then amount would be multiplied by 12 and displayed in Total
if frequency was weekly" then amount would be multiplied by 52 and displayed in Total
etc.

Hands up, Ive looked for a If/Then Expression and havent found one I could bend to what I need - Im still looking.

What I have:
=IIF(Fields!INSTALLMENTFREQUENCY.Value = "Monthly", Fields!Projected.value=Fields!INSTALLMENTAMOUNT.value * 12.0)

error:

The Value expression for the field ‘Projected’ contains an error: [BC30455] Argument not specified for parameter 'FalsePart' of 'Public Function IIf(Expression As Boolean, TruePart As Object, FalsePart As Object) As Object'.


and

=IIf(Fields!INSTALLMENTFREQUENCY.Value Like"Monthly",Fields!Projected.Value=Fields!INSTALLMENTAMOUNT.Value*12,0)

just gives an #error in the projected field

If I could just get an example I can build from there.
Also could I write the expression as VB? Could you give me an example of that?


I know this is a basic "show me" post and I apologise in advance.

Davie.

How can I "copy paste" a existing table command with a stored procedure one?

$
0
0
Hi.
I have a command named "command", i want to change the command and bring the EXACT same fields with a stored procedure command.
The problem is how can i do that?
When i go to the CR data sources I can add the sproc command along side the table command (exact same fields).
After that, chaos. If i delete the table command it will complain that some fields are bound and will not let me save the .rpt even if I can view the data on the preview.
I can see some fields are checked green and some others are not and the command change it's name to command1.
If I leave both command it will go into a table relationships link data mode that it saws the 2 exact same tables (table and sproc) side by side. Link one to one.
Again I have no idea how i can just delete the table command and replace it with the sproc command.
Any help?
Thanks.

[RESOLVED] Helpless to show multiple records on crystal report page separately

$
0
0
Good day, wonderful people of this forum. Please I am using crystal reports visual studio version CRforVS_13_0_15 and I am finding difficulty displaying the rows on separate pages. Displaying a row on a single page is not a problem. But let's say SQL query returns 30 records, these records should display on 30 pages separately. Which means every page will have different record. None of the fields is on the detail section. I appreciate your effort in advance. Many thanks

[RESOLVED] Google Map in SSRS Just show a deep blue sea

$
0
0
I've been asked to Show a Google Map in a report and, looking at their API, I think this should be quite easy. I've added an image, set it's source to external and set it's URL as follows:-
="https://maps.googleapis.com/maps/api/staticmap?centre=London&zoom=14&size=200x200&key=MyKeyIsHere".
(I plan to replace that London with a postcode once I've got things working - just trying to keep things simple for now)

The thing is, all I get on the page is a big blue square:-
Name:  DeepBlueSea.PNG
Views: 44
Size:  11.0 KB

As far as I'm aware London is not underwater (I know our economy is supposed to sink post Brexit but I wasn't expecting the whole damn city to go under) so what gives? I've tried a variety of different locations but I'm getting the same result every time. The API isn't returning any error (and I can force it to error by passing a mangled call or an invalid key so I know it show when there is one.) Any suggestions?

I should say, this is using BIDS 2008 R2.
Attached Images
 

Extracting the name of the RDL from an SSRS report

$
0
0
We have several published SSRS reports in our organisation that haven't been documented properly; they're in use but we don't know when they were created or what the original requirements were. We need to make some changes to some of them, but the names that show in SSRS are useless. Ideally I'd like to find out the name of the associated RDL so that I can find it in our source control repository, but I can't see any way to extract it from SSRS. Anyone ever managed to do this?

Thanks...

Please Help Data Report Problem

$
0
0
Im having a hard time doing data report for my pos receipt

here is the code
private sub cmdPrint_Click()
Set itemcart = New ADODB.Recordset
itemcart.Open "Select ItemNumber, ItemName, ItemPrice, Quantity, SubTotal from ItemCart", con, adOpenStatic, adLockBatchOptimistic

With itemcart
If .EOF = False Then
Set drReceipt.DataSource = itemcart
drReceipt.Refresh
drReceipt.Show
End If
End With
Set itemcart = Nothing
end sub

and here is the error

runtime error 8577
Arguments are of the worng type, are out of acceptable range, or are in conflict with one another

im using that kind of code in other form and it's working fine but when i am using that on my pos to print receipt its not working. please help Thanks

Crystal Reports: how to LEFT OUTER JOIN fields?

$
0
0
hi guys, I wish you are doing so great...

I want to know how to assign a JOIN field in Crystal Reports!!,
for example; I have two tables

MOVEMENTS
ID
Product_ID
Quantity
Price

PRODUCTS
ID
Name


I want my Crystal Reports retrieve data like this:
Movement_ID / Product_Name / Quantity / Price

Code:

    Private Sub CrystalReport_Viewer_Form_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim cmd1 As New SqlCommand("SELECT Movements.*, Products.* FROM Movements LEFT OUTER JOIN Products ON Movements.ProductID = Products.ID", sqlconnstring)
        adapter.SelectCommand = cmd1
        adapter.Fill(ds, "Table1")

        Dim objRpt As New CrystalReport_Invoice
        objRpt.SetDataSource(ds.Tables("Table1"))
        CrystalReportViewer1.ReportSource = objRpt
        CrystalReportViewer1.Refresh()
    End Sub

and in Crystal Reports (Database Expert) window -I linked Movements.ProductID with Product.ID with (LEFT OUTER JOIN, Enforce Both) in linking option, data appear but with a blank fields for (Product.Name)......??!!


I really appreciate your help
my regards

Unable to Save Formula

$
0
0
Hi

Unable to save below formula . The remaining text does not appear to be part of the Formula.
Using Crystal Reports 9

tmp={Invoice.invoiceno}
exVal = Val( Mid$(tmp, InstrRev(tmp,"/") + 1))

Thanks

How to print Chinese in Crystal Reports.

$
0
0
I am fix crystal report for Chinese, but when I printed it displayed as square □□□□□□.
I tried static field by Chinese font (Simsun, Arial Unicode MS) and it display well.
But dynamic (which get from MSSQL) generate part of cystal report print as square □□□□□□.
I re-checked database and certain that field was save by unicode with type nvarchar.

System info:
Window 7, VB 6, Crystal Report Developer 11.0.0.1282
Printer support unicode.

Alternate blank pages with header on export to pdf file from rdlc

$
0
0
I'm using rdlc reporting and have a header and footer.
If the header & footer contains text the report prints to pdf correctly.

For example:
If one text box in the header contains the text 'ABCD' then it prints to pdf correctly.
If I change the expression of the text box to be a parameter and set the parameter to 'ABCD' then in the pdf file
page 1 contains just the header & footer,
page 2 contains the header, footer & body (1st page),
page 3 contains just the header & footer,
page 4 contains just the body (2nd page),
page 5 is blank,
page 6 contains just the body (3rd and final page)

All the help suggests changing margin & page sizes etc. But the only thing I'm doing is changing from text to a parameter. It also goes wrong if I change it to a field in the database.

The report displayed in the report viewer looks correct - it is just the pdf file that is wrong.

Any suggestions?

Split string from one data field into array and getting equivalent from another table

$
0
0
I'm using CRXI.

I was wondering if it is possible to get and display an equivalent data from a separate table after splitting one data field into arrays .

Let me put it this way. I have one table named tblNumberCombination which has one field and one record was saved: "1, 2, 3".

I have another table named tblNumberNames which has two fields and has three records saved: "1""One", "2""Two", "3""Three".

I will place the field from tblNumberCombination into the report, but I want to display it as "One, Two, Three".

External image show only red x

$
0
0
I have inserted an external image on my report. The report shows the image at design, but once I run my application only a red x is shown.
Any help would be much appreciated. Could it be a permisssions problem? How do I fix this?
Regards
Viewing all 589 articles
Browse latest View live




Latest Images