How to set sheet name while exporting excel using display tag? - export-to-excel

I am using display tag to export excel sheets. I can set the name of the excel file to whatever I want.
But I also want to set the name of the excel sheet inside the file. Right now by default it is set to ' - ' which does not make any sense.
Please help.

in property name tag pass like
${RequiredString/bean property / value from session}
for ex.
what I am doing is ${applicationName}
Here 'applicatinName' is my property declared in action class which will set every time request is submitted.

Related

How can I display an image in a ms access 2013 report using relative paths stored in a field of a database

I have a simple database with table tblUsers containing the following fields:
id-number
name-short text
surname-short text
picture-short text
In the picture field I store the relative path to the linked image file for every record (using a form and a file dialog box for selecting picture).
I'm currently trying to make a report with 9 id cards on a page layout in which for every record, using an image control, to show the picture for the record by recreating the full path to the file and assingning it to the control's Picture property.
So, as an example:
I have 9 records with the values of the field Picture equal to: john_doe1.jpeg to john_doe9, stored as text.
When I load the report, I want to be able to see the 9 id cards with their respective photo atached.
I tried using the on current event for the report with this code
Private Sub Report_current()
Me.txtPathImg = Me.GetDBPath & [tblUsers.picture]
Me.imgControl.Picture = Me.txtPathImg
End Sub
but all I got is one picture for all the records in the report.
How can I display the correct picture for every record in report view?
Use a bound image control, i.e. set it's control source, e.g.
=GetDBPath() & "\" & [picture]
Then you don't need any code.
GetDBPath() must be a public function for this.
Or build the full path in a query, use that query as recordsource, then you can directly bind the image control to the full path.
hellow S.Overflow
tbl1students:
ID_FullName - dataType : text
Image_Path - dataType : text such as (D:\Imagefolder\FullName.jpg) you know that? ok
............
now create report wizard from tlblstudents table and then open report ac design
ok :
Add Imageframe from toolsbox
then make controlsource :Image_path
..............
you don't need to VBA cods to do that

Setup Project: user enters a value then store it in a text file or database

As the title said, how can i do that?
I've search some tuts on google, but only for creating simple setup projects.sample
When the user enters 'something', that value will be stored in a textfile or database after installation and is located in the application location (ProgramFiles). thank you ^_^
That dialog looks like a TextBoxes dialog, and that dialog has uppercase property names for the content. If it's TextBoxes(A) the property name is probably EDITA1 so you use it in the format [EDITA1] to pass it to custom actions. Without knowing exactly what kind of custom action you'll be using I can't be explicit, but you'll probably start by having [EDITA1] in the CustomActionData property of the custom action. For (a bad) example, in a VBScript custom action you'd use the value session.property ("CustomActionData").

Visual Studio: Use csv file for "Find Text" validation in web performance test

I can use csv files to enter data into input field after a test is recorded. I was wondering if csv file could be used for "Find Text" validation field. I don't see options to add csv file so I have directly hardcode text be checked. If I could add a csv file then I would just need to change the csv file once the website texts are changed. Could this be done by using codedUI test?
Thank you
The fields of a data source can be used in many places within a Web Performance Test. There are two main ways.
In the properties panel for the call of the validation rule, click in the value field for the required property. You should get a box allowing the data source field to be chosen.
Alternatively enter text similar to the following into the field
{{DataSource1.YourFileName#csv.FieldName}}
Note the doubled curly braces {{ and }} around the full data source string. You can also add extra text to this sort of entry, eg
Some text{{DataSource1.YourFileName#csv.FieldName}}and even more text

how to display image from file system

I want to display images from file system, which will dynamically change by query.
for example: employee_id = 1001 then show image C:\images\emp_1001.jpg
I want to set the file path from the query.
I am using Reports 6i.
Regards:
Set the property "Read from file" to Yes for the item in the datemodel, and additionally set the filetype to "Image" (also in the properties of the item)

Access rdlc elements from code behind file

can you please give any sample code for accessing the rdlc elements from code behind file.
I have a text box in the rdlc file, i have to set the value for that from code behind file. Please help me
Thanks
P S Marimuthu
You can just load the RDLC code as XML using XDocument or XmlDocument or whatever you want, and then query and update the file accordingly as you wish, and then save the RDLC. If you have a value you want to set programatically this way, you can define a hidden report parameter and use the DOM to update that parameter programatically in the same way.

Resources