How to remove blank spaces from a detail section? - vb.net

Hello and greetings to the community.
I have the following report made in Visual Studio 2015 using VB.NET and Crystal Reports:
Those boxes that I painted in light blue are the white spaces that I want to eliminate. The section that contains this information in Crystal Reports is as follows:
In that section, I have the following associated function, which only contains the functionality of showing or not the section depending on whether the TipoDocId is NULL:
IF IsNull ({SpCon_CONTA_Rpt_LibroDeInvBalances_Cta14;1.TipoDocId} ) THEN
true
ELSE
false
I'm sorry to use images, but for this specific problem it's the only way to show the problem.
Thanks in advance for your responses.

Looks like you simply need to suppress Detail Section 2.

Related

Can I use the Shrink Method for the whole document in word

I don't know anything about code. I work with e-learnings in Storyline 3. I sometimes localize these e-learnings and use the translation tool in Articulate which basically exports an MS Word file. Sometimes the target languages are longer and I need to decrease the font size by percentage for the whole document. Usually, there are at least 3 different font sizes that I need to decrease accordingly. I am wan to develop a macro that I will use for multiple documents.
I couldn't find a way to do this by percentage, but looks like the Shrink or Grow Methods will do the work! I found this code in the reference page but looks like it works only for a selected object. The issue is that the exported MS Word file is in a table with each text box in the storyline separated to a cell. When I select the whole table it does not work.
If Selection.Type = wdSelectionNormal Then
Selection.Font.Grow
Else
MsgBox "You need to select some text."
End If
Could you please help me and let me know if this would be possible for the whole document, or the selected table? It would be very much appreciated. Thanks in advance.
It is unclear from your question whether the table in the Word document contains the actual text boxes or just the text they contain.
If it is just the text then Shrink may work. I tested this on a document with a single table containing only text:
ActiveDocument.Range.Font.Shrink

TabControl Reversed words vb.net right to left

I'm using theme called Net Seal
my problem is when I make the tapcontrol right to left , the words got reversed .
like this https://i.stack.imgur.com/2utGe.png
the theme code that I'm using is located in pastebin.com/0tQ2eqYV
sorry I can't post all the code
I need to write the title of tapcontrol in arabic
how can I fix this problem
I found the issue if any one has it
the solution is
from the properties of tapcontrole just changing the Alignment to (Right) and RightToLeftLayout to (False) and RightToLeft to (Yes)

Crystal Report XI- Suppressing Header after page break

Hi I'm new to using Crystal Report XI and I'm having a difficult time with this issue.
I run a billing statement using Crystal Report Monthly. And I process at least a thousand statements on one PDF. The header ie: "DB---Break" tells our system when a participant statement ends and a new statement begins (Mailing Purposes).
However, if a participant has an overflow of statements that goes onto the the next page. The header "DB--Break" cuts off that statement for that participant.
With all that being said, I'm currently trying to find a way to suppress the header on the second page of the participant who has a overflow of information. How would go about resolving this? Thanks in advance
Example:
DB----Break (Header)
Joe Smith, (Name)
TEXT TEXT TEXT (body)
--------Break in Page----------
DB--Break (Need to suppress this Header)
TEXT TEXT TEXT TEXT (continuation of body from John Smith)
--------Break in Page----
DB----Break (Header)
Sarah Johnson, ( New Participant Begins)
TEXT TEXT TEXT (Body)
Try this:
Right click on Header -> Select Section Expert.
Highlight the header you want to suppress. On the Common tab to the right check the supress checkbox
Then click on the formula x+2 button and enter the following formula:
pagenumber > 1 and click on Save and Close.
This should suppress the header section on second page.

Formatting Marks also show and hides tables

I have a weird bug.
The below report is built from from a complex Excel Macro and below is a single page from the report output. The page is built from a range so the report is all in tables which is fine.
https://drive.google.com/folderview?id=0B-A_d72xVQXtfmVQUFFHdmVvUUdldUpLT1dmRnk4bXowaDNtUWt0eE5yeE1mZHRKNEpyck0&usp=sharing
The problem I am having is that the table Excel has put into this particular page (and about 1-2 others), is that the "show/hide formatting marks" button (e.g. the backwards P at the top of word) also show and hides the table and anything in the table.
I can expand on this as much as needed and have provided a download link as the only way to really show it is for it to be seen by turning the formatting marks on and off. I have removed text on that sheet as some of it is sensitive.
Excel code being used to copy and paste is below. This code works fine for the other 100-200 pages.
Sheets(curr_sheet).Range(sp(0), sp(1)).Copy
oDoc.ActiveWindow.Selection.Paste
any ideas?
I have found the answer thanks to #Tim Williams pointing me in the right direction.
It was because of the hidden text flag being set to true, I do not know how it got set to true as I can not find any reason for it to be.
Anyway if anyone else is looking this sloved my problem
oDoc.ActiveWindow.Selection.WholeStory'select everything
oDoc.ActiveWindow.Selection.Font.Hidden = False'Turn hidden off for whole document

HTML Formatting tossing #error

I am attempting to format an expression in SSRS with an HTML code and am getting #Error tossed upon report preview. My expression looks as follows:
="<b>Region: </b>" + Fields!RegionID.Value
I have also ensured that HTML - Interpret HTML tags as styles has been selected under Placeholder Properties. Has anyone experienced this behavior before?
Thanks!
In SSRS 2008 and above, you can use placeholders to achieve this.
See Formatting Text and Placeholders for more details.
To give a quick example, in a textbox, enter some text then right click on the empty space to the right of the text:
You can set the placeholder properties to display your required field in the Value property:
You now have two distinct text parts in the textbox that can be formatted independently, e.g. one bold and one normal: