.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Post New Web Links

Print Form View and expanding text fields?

Posted By:      Posted Date: September 09, 2010    Points: 0   Category :SharePoint
 
The form i'm editing has a small text field with a scroll bar that users enter quite a bit of data.  I'm wondering how to create a print view for the form that will expand that field to match the size of the content text. Does that make sense?


View Complete Post


More Related Resource Links

Infopath 2007 print view in browser enabled form with Print button

  

Hi i create a  print view brower enabled form in Infopath 2007 with header and footer. In Infopath works fine. Margin was ok, header and footter to. But then i try to print this browser the margin, header and footer it changes to default setting of browser ? I try also create a print button in form with VS 2008 code, but method :

this.print(); not working.

It is possible to print the "print view" in browser as the same like in Infopath 2007? Does anyone have the code how to create a print button in C# on browser enabled form?


Can't paste text into an Infopath form and see it with print preview

  
I have a user who says that they can't view any of their text that they cut and paste into the fields of a form when they choose Print Preview, in the forms library.  They're using IE8 to access the SharePoint site. When I access the same form in the same library from any browser from my computer, I can view pasted text in any field when I click Print Preview. Anyone see this before and can help me?? Thanks!    

Infopath browser form - odd behaviour on auto expanding multi line text boxes

  

Hi,

 

I have a browser form with a multi line text box. The height is set to be AUTO. Within the client all is fine. When opened as an administrator approved form the text box automatically adds a new line for every 20 characters you type.

 

So if you type 40 characters without pressing enter you get 2 blank lines appear under you text that you CANNOT remove.

 

I have tested this on a new form with various multi line text boxes. The width setting is unimportant, the spell check setting is unimportant.

 

If i fix the height then the issue goes away but this is not any good.

 

I cannot use rich text boxes as i have around 40 text boxes on the form and if they are rich text they take around 10 minutes to load in the browser (this is another issue i have)

 

Thanks in advance

 

Paul


Need help on Select button column in Data Grid to populate fields in Form View

  

 When I have a select a row in a Data Grid that when I click on it I want it to show the info for the person I selected in a form view on the same page as the Data Grid. Here are the columns for the Data Grid that I have set up, the column is highlighted:

<asp:DataGrid ID="MHGrid" AutoGenerateColumns="False"  
        DataSourceID="MHFoundation" DataKeyField="POPULATION_LIST_ID" 
        AllowPaging="True" AllowSorting="True" BorderStyle="Solid" 
        BorderColor="#999999" BorderWidth="3px" CellPadding="4" PageSize="4" 
        CellSpacing="2" runat="server" BackColor="Gray" Font-Bold="False" 
        Font-Italic="False" Font-Overline="False" Font-Strikeout="False" 
        Font-Underline="False">
        <SelectedItemStyle BackColor="#FF9900" Font-Bold="False" Font-Italic="False" 
            Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
        <Columns>
            <asp:ButtonColumn CommandName="Select"  Text="Select"></asp:ButtonColumn>
            
            <asp:BoundColumn D

When User Clicked on Save Button Result Should be visible and Grid View Text Fields should be visibl

  

Hi Friends,

   I am Ali, My Issue is

1. I have 'Result Management Form', in this form after entering Subject marks(In Grid View), i clicked on Save Button. (Result: When i click on Save Button totlal marks should be visible in Lable)

2. But when  i click on Save Button Subject marks 'Text Fields' are going to empty. and not visibling Total marks in Lable.

Here i am using this code

for (int i = 1; i < st_data.Rows.Count; i++)
{
int tot = 0;
for (int j = 3; j < st_data.Columns.Count-1; j++)
{
st[j] = st_data.Rows[i].Cells[j].Text;
tot = tot +int.Parse(st[j]);
}

}

Any Ideas

Thanks,

Ali.


MD.Liakath ali

Infopath browser form - Digital Signature resized in print view

  

Hi,

I have an Infopath browser based form that I have a digital sig on.  When the user signs it (Valid Signature - Signed by) the font size is small and is acceptable for use in the form.  Howvever, when I go to "Print View" it resizes to a larger font.  I do not want this as I am trying to fit the form to one page.  I altered the font in the signing section in the Print View in Infopath to no avail.  Looking at the Manifest file, I cannot locate the code where it determines the font size.  Anyone have any ideas?

Thanks,
Aaron


InfoPath - How to show multiline text box in print view with entire text i.e. text exceeds more than

  
I have created an Infopath form with a multiline text box, at times, there is more information entered into the text box, cause a user to scroll. 
That feature is ok but when a user prints the form, only the information displayed on the screen is printed, and not the entire contents of the text box.  How can I print the entire contents of the text box?
also i dont want to create an another view as we have around 100 from and each can be change time to time causing print view need to be changed.

Form view in ASP.NET

  

hi all...!
i have a database and i create a form with button edit,delete, New Registration..using Formview in asp.net..
everything was working good...

And i write SQL statement to get New ID number into dropdownlist/TextBox when i click button "New Registration".

i can get new(next) ID number after read database
it's also working good

Now i want change it to get ID which was deleted from table and replace the ID with new record...what i need is when i click "New Registration" i want get deleted "ID" first and then go to new record ID...

my code is here:-it working for get next ID after read database.

SELECT min(PANG)
FROM (SELECT ID + 1 AS PANG
FROM Table1
EXCEPT SELECT ID FROM Table1)
AS boon WHERE PANG &gt;300000
</p>

Crystal Reports can grow fields with large amounts of text layout problem

  

A can grow field in the details section of a crystal report may have so much text that the section will be larger than the remaining space available on the page (the space below the previous record).  The section has vertical lines on it with Extend to bottom of section when printing set to true.  The section starts on a new page (and may continue on the following one).  I want it to start on the page where the last record was laid out, and continue to the new page without leaving a gap with vertical lines on it.  I'm using Crystal Reports 9 and I can't work out how to do it. Has anyone got a solution?


Send an Email with User fields data entered in the form

  

Hi All,

          I have a form which have some user input fields(like textboxes,dropdownlists,textarea etc) fields and a submit button.

on click i need to send email with body contents as all the details entered by user in the form

Can anyone suggest how i should approach to this in sharepoint..

any code examples would be appreciated.

 


Issue in Infopath 2007 browser form - cascading dropdown using owssvr.dll filter view

  

Referring the below link, I created a cascading dropdown. The parent dropdown has sharepoint list as datasource and the child dropdown has xml datasource that points to owssvr.dll filter view. The cascading drop down works fine in preview but throws error after publishing as admin approved form - "form cannot run the specified query" exception when trying to execute xml datasource i.e., when a value is selected in parent dropdown. The security is 'Full Trust". In the event viewer the error message states "401 unauthorised" for the user a/c. the xml data source is an approved udcx file and in central admin, have enabled cross domain for infopath service. I have tried different solution provided in tech forums but issue still exists. Not sure whether Im missing something. Can someone guide me in fixing this issue?

Link Reffered:

http://www.bizsupportonline.net/browserforms/filter-cascade-drop-down-infopath-sharepoint-browser-form-owssvr-dll.htm

http://www.sharepoint-tips.com/2007/01/infopath-form-services-implementing.html


click a button to print current window form

  
how can i click a button to print current window form? i don't know how to set and define something? anyone give me example for my reference   thanks.

text box in the footer of the grid view

  
hi frnds i hv a grid view that has three columns name,age,phone no.grid view is autogenrated column is true.hw can i take three textboxes in the footer row.if i hv a select buttton in the grid view.i want on click of ths btn corrosponding value get bind to corrosponding textbox in footer row.can i do the coding on any one of the txt change event of these three textboxes.pls help  me

How to read a column of a sharepoint list to a text string field of infopath form?

  
My infopath form used to read these email addresses from a web service and web.config file. Now i would like to get these user email addresses from a contact list in a sharepoint server. I am trying to do this without writing any codes. Here is what i have done so far: 1. Adding a new "data connection to receive data from SharePoint library or List" where i selected Email Address column of the contact list. 2. I added a new Text Field and define a new rule with "Query using a data connection" defined above. When i try to access the newly created Text field above it always return empty as if the Query attached to it did not executed at all. What did i do wrong? Is there a better way? Thank you in advance for your help.

error in MVC2 on empty string form fields which are required: "This property cannot be set to a null

  
In model I have:[DisplayName("ISBN")] [Required(ErrorMessage = "ISBN is required.")] [StringLength(50, ErrorMessage = "ISBN book must have max {1} chars.")] [DisplayFormat(ConvertEmptyStringToNull = false)] public string isbn { get; set; }But when I submit form with empty field ISBN I have an error - ConstraintException: This property cannot be set to a null value.I have find that other people have the same problem and they say that debbugger in VS2010 works wrong - yes ?http://p2p.wrox.com/book-professional-asp-net-mvc-2/79788-constraintexception-unhandled-user-code.html#post259245http://efreedom.com/Question/1-3129080/Server-Side-Validation-REQUIRED-String-Property-MVC2-Entity-Framework-Workhttp://mvcmusicstore.codeplex.com/workitem/6604

Infopath 2007 not printing footer in browser print view

  
I have added a footer to the print view of a browser enabled form and it is not printing when printing the form. The footer is relatively sinmple, however when I click on print view on the browser form and use print preview, I cannot see the footer at all. I have set bottom margins to auto, however I am using an image in my header and therefore have a section at the top of each page where my page top margin is set to 0 and the margins lie within the bounds of the section at .25". The footer that is not displaying in print preview in the form is as follows;"Quote Number: &{/my:myFields/my:sqnumber&} &b&pof&P&b &b &{/my:myFields/my:group28/my:sqdate&}Revision: &{xdFormatting:FormatString("/my:myFields/my:sqquoterevision","number","numDigits:0;negativeOrder:1;")&} &b Prepared For: &{/my:myFields/my:sqclientname&}"The page setup in IE listed page number and url info when using print preview and I have set them to none because my footer is in the form. Please help, this is frustrating!

List view - inline editing with read only fields

  
I'm new to sharepoint and using SP2010. I would like to use the inline editing feature of list view and at the same time to lock some of the fields. Is there a simpler way to achieve this like adding some field property using SP designer?
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend