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


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

Fit on one page option is working backwards

Posted By:      Posted Date: October 21, 2010    Points: 0   Category :Sql Server
 

Hello everyone,

Issue 1.) I am printing an invoice report,    The line items table does not print on the first page of the report if there are too many rows to fit on one page.  I want the items to start printing on page 1 regardless of how many rows there are.

The option "Fit table on one page if possible" is NOT  checked. 

The option "Insert a page preak before this table" is NOT checked.

Issue 2) The bottom of the report contains a rectangle with the totals and signature lines.  I want these to print on one page.  I only want a page break if there is not enough room to print on the current page. Is there a way to do that?  I do not want to always insert a page break - only if there is not enough space to print the entire rectangle.

 

Thanks for any assistance.




View Complete Post


More Related Resource Links

JQuery Treeview plugin is not working with Ajax page load in ie8

  

Hi there,

I developed a page where i m using jquery treeview plugin to generate tree. It worked fine on FF, IE8 with out ajax.

But when my page loads thro' ajax call in IE8, it is not collapsing or expanding tree.


Any idea?

Thanks in advance.



Web Part working fine on the top-level page but 'Not Safe' error on lower-level pages.

  
Hi,

I have created a Web Part which reads and parses the SharePoint logs in order to display usage information of the page it resides on.  The Web Part works perfectly on the top page, reading and displaying the information desired.  However, once the Web Part is added to any page lower in the site heirarchy (sub-page) the same Web Part throws the following error:

Error 
 
Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.

Show Error Details
Hide Error Details

[UnsafeControlException: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.]
  at Microsoft.SharePoint.ApplicationRuntime.SafeControls.GetTypeFromGuid(Guid guid)
  at Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts)
 


Of course the current version of the Web Part is in the SafeControls list on the web.config.

The Web Part was originally designed to return site activity only for the top default.aspx page and worked fine but started to fail in the manner described above once I added the following line of code to return a SPCo

GetRouteUrl() not working on Master page

  
Hi, I'm facing odd problem with Page.GetRouteUrl() method. It is working only on regular content pages and doesn't want to work on my master pages. I'm using simple snipet: <%# Page.GetRouteUrl("Default", null).ToString() %>, when I put it on some page, it generates "/Default", when I put it on master - I get "". I've tried calling Master.GetRouteUrl() instead but still no luck, it always returns empty string. Funny thing is that it works in code behind (bothPage.GetRouteUrl() and MAster.GetRouteUrl() works) of the master page, only markup seems to be affected. I bet it is somehow related to the configuration since I have recently moved from ASP .NET 3.5 to 4.0 on IIS7 with integrated pipeline. Anyone have any clues?

Retract custom master page feature and all site pages stop working

  
There is a requirement to apply custom branding on personal sites in a SP 2010 project. For this I have created a feature which uploads and applies the custom master page on creation of any new personal sites.   I have stapled this feature (using feature stapling concept) to the “SPSPERS” (personal site) site definition. The custom master page is displayed on the creation of new personal sites. On feature deactivation, I am looping through all the personal sites (as the feature is deployed on a team site) and pointing the master URL back to v4.master. But when I retract the solution and browse to the personal site, I am getting a “404 File not found” error.  But am able to view the settings page by typing the URL.   I activated the publishing features and looked at the master page applied to the personal site. It was pointing to v4.master.   Any help on this is appreciated. Regards, Neha

Retract custom master page feature and all site pages stop working

  
I have stapled this feature (using feature stapling concept) to the “SPSPERS” (personal site) site definition. The custom master page is displayed on the creation of new personal sites. On feature deactivation, I am looping through all the personal sites (as the feature is deployed on the root site) and pointing the master URL back to v4.master. But when I retract the solution and browse to the personal site, I am getting a “404 File not found” error.  But am able to view the settings page by typing the URL.   I activated the publishing features and looked at the master page applied to the personal site. It was pointing to v4.master. Any help on this is appreciated. Regards, Neha    

WCF function call in page load not working asynchronously

  
Hi all, I am trying to implement the WCF async function call in my page load event but, it not working asynchronously. Which means page content is displayed only after the asynchronous event is completed. This is my code         protected void Page_Load(object sender, EventArgs e)         {             if (!IsPostBack)             {                 ServiceReference1.Service1Client srv = new WebApplication1.ServiceReference1.Service1Client();                 srv.GetListCompleted += new EventHandler<WebApplication1.ServiceReference1.GetListCompletedEventArgs>(srv_GetListCompleted);                 srv.GetListAsync();             }         }           void srv_GetListCompleted(object sender, WebApplication1.ServiceReference1.GetListCompletedEventArgs e)         {         

Custom Webpart not working on "My Profile" page but works on all other pages. Linq Problem?

  
Hi, I created a publication site and in that site i created pages with specifique metadata (using a pagelayout with a custom content type)0. My webpart is getting data from those pages and displaying it. My webpart works on every page except on the "my profile" page(overview tab). I get the following error: Invalid Url: /TestSites/course I used the SPMETAL to create a class and i'm using this class to retrieve the data from the pages (with linq). The url i give to the entity is http://pcp/TestSites/course  this works fine on every site except on the my profile page. Can anybody help me? Here is the code i use to retrieve my data: EntitiesDataContext ctx = new EntitiesDataContext(courseSite); //Code below gets only the pages with a courses contentType. //EXCEPTION TRIGGERT ON THE FOLLOWING LINE IF IN PROFILE PAGE EntityList<Courses> course = ctx.GetList<Courses>("Pages"); //Writing the query to get the correct pages(with the course page layout only! var Query = from myCourse in course.ToList() where myCourse.CourseParticipants.Contains(myWeb.CurrentUser.LoginName) Select new{myTitle = myCourse.CourseTitle, myCompany = myCourse.Company, myPath = myCourse.Path, myName = myCourse.Name }; Thx.    

Sub Page_Load - not working in the content page.

  
Hi there,I am using a content page (tellafriendaction.aspx) which uses a master page (PublicMaster.Master)The masterpage Page_Load event (in the code behind page) is working and is called when tellafriendaction.aspx page is called.But the Page_Load event in the content page (tellafriendaction.aspx) is not working or is not called when i call the content page while i am debugging the application.(Note: I have an html form in TellAFriend.aspx content page. It submits the form to TellAFriendAction.aspx page, which should capture the form content and send the friend an email message.)Here is some code samples:=================tellafriendaction.aspx.vb (code behind page for the content page)==================Imports System.ConfigurationImports System.WebImports System.Web.SecurityImports System.Web.UIImports System.Web.UI.WebControlsImports System.Web.UI.HtmlControlsImports System.Net.MailPartial Class tellafriendaction    Inherits System.Web.UI.Page    Sub Page_Load 'this method is not being called WHY?        Dim emailFromAddress As String = Master.Request.Form("txtFromEmailAddress")        Dim emailToAddress As String = Master.Request.Form("txtToEmailAddress")        Dim fromName As String = Master.Request.Form("txtFromName")   &nb

Why Search Option is not working correctly in the People Search Box?

  

I have SharePoint Server 2010 Enterprise based intra.
I have added People search box.

Why I click the Search Options, it opens the fields top of the webpart below the search box.
So basically 2 webpart looks like they are top of each others.


Kenny_I

Publishing Site - Edit page not working

  

Hello

I'm creating a WCM site with custom master pages and page layouts. I'm using PublishingControls HTMLEditor (i was originally using Telerik Rich Text Editor and it dint work too) to facilitate content authors to enter content and publish it. But when i click edit page the publishing console is appearing but no the HTML editors.

Any ideas?


Regards
NLV
Visit SharePoint User group - India

Emergency Help! Page working but suddenly doesnt!

  

Hey, I have a severe problem. This code was working not 3 hours ago and has been for days, and suddenly it stopped.

Here's the web page code:

<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Main.aspx.vb" Inherits="Members_Main" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 51%;
        }
        .style4
        {
            width: 50%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:LoginView ID="LoginViewMembersOnly" runat="server">
    <LoggedInTemplate>
         <h2> Member Control Panel</h2>
                    <table border="0" runat="server" id="MemberTables">
                        <tr>
                            <td class="style4" valign="top" runat="server" id="MemberProfDiv">
                            <div class="MemberProfile" runat="server" id="MemberP

Moving To a new Webserver page stopped working - BC30561: 'TreeNode' is ambiguous

  

Hi

Since i migrated a page to a new webserver running Asp v4 the page throws up this error I'm guessing ASPv4 it doesn't like the asp.2 code not having much of a clue of ASP I need some help to figure out how to resolve this problem. thanks in advance

D.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30561: 'TreeNode' is ambiguous, imported from the namespaces or types 'System.Web.UI.WebControls, Microsoft.Web.UI.WebControls'.

Private Sub populateTreeView(ByVal strDirectory As String, ByVal nodeParent As TreeNode)
Line 58:             Try
Line 59:                 Dim CurDir As New DirectoryInfo(strDirectory)

Link to css file is two times in web page, css is not working

  

Hello,

When I am building and running a webform, the link to a css file is two times in the head.
And the css is not working, can any one help me please.
The code is:

In the view source of the webpage:

<head><title>
   Home - MKB Databasebeheer
</titel><link href="App_Themes/MKB/MKB.css" rel="stylesheet" type=""text/css" /><link
hred="App_Themes/MKB/MKB.css" type="text/css" rel="stylesheet" /><style type="text">

The code in the master page is:

 <head runat="server">
  <title>Mkb Databasebeheer</title>
  <link href="App_Themes/MKB/Mkb.css" rel="stylesheet" type="text/css" />
</head>

The code in web.config is:

<page theme="MKB" masterPageFile="~/MKBDatabasebeheer.master: maintainScrollPositionOnPostBack="true" />

I hope that it is clear to you what I have done, and what I have done wrong?

 

Greetings,
Willem


Publishin page layout, that add/update values in a metadata of the page not working

  

We have custom control on Publishin page layout, that add/update values in a metadata of the page. Code is written in 'Button click' event that update/add new values to the metadata. Following is the code snippet, which is working fine in Stage and Acceptance servers. Publishin page doesn't update Draft version with SPListItem.SystemUpdate instead it updates to last published major version.

currentPublishingPage = PublishingPage.GetPubl

'Edit content' link is not working on article page

  

Hi,

I am using MOSS 2007. I am using custom master page, custom theme, and custom page layout for my portal site. I have created one article page, but 'Edit content' link is showing some javascript error. If I set out-of-box default.master as master page, then its working fine. But its showing me JS error with my custom master page. What could be the reason?

Its very urgent. Please response.


AsyncFileUpload - not working w master page in VS2010 B2

  

I'm using the AsyncFileUpload Extender inVS2010 Beta2. When I include the control in a page derived from a master - even a stripped down basic one does not work. The exact same setup works in a page not derived from a master.  The error I get when I attempt to upload any file is: Unhandled Exception: the attached file is invalid. I have simplified the entire project down to the default created automatically with the AsyncFileUpload control added:

Default.aspx content:

<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="UploadTest._Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <

lost edit page option in sharepoint

  

Hello,

  I created a couple of sharepoint sites from a parent site created by my manager, I have full control privileges and created each page the same way, but for some reason i have lost the edit page option on some pages. I checked with our "helpless" desk, and they claim no pages are checked out and my permissions are as they should be. they claim i removed the option through sharepoint designer, but at no point "atleast not intentionally" did i remove this option from the page. can someone tell me how to restore this option? or do i just have to start from scratch.

 

thanks.


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