Jump to content

fredsmith

Member
  • Posts

    17
  • Joined

  • Last visited

Everything posted by fredsmith

  1. Hi guys/ladies! I am trying to capture video from my TV into my laptop and need your help. I've never messed around with capture cards before. Now i realize that it would be as simple as buying a capture card and plugging the HDMI cable into my TV and the USB into my PC. However, in this situation, I have another laptop that will be streaming video into the TV, and I am trying to capture the video being streamed into anther laptop at the same time that the video is being streamed. So i have 2 laptops and a TV, one laptop streaming video to the TV and the video is being captured by the second laptop. I am looking at a capture card like this. Also, since my TV has no output HDMI, would I need a splitter like this to use output 1 to display video on TV and output 2 to capture the video on the second laptop? I really appreciate your help!
  2. Hi guys/ladies! I am trying to capture video from my TV into my laptop and need your help. I've never messed around with capture cards before. Now i realize that it would be as simple as buying a capture card and plugging the HDMI cable into my TV and the USB into my PC. However, in this situation, I have another laptop that will be streaming video into the TV, and I am trying to capture that video from the TV and save it into another laptop. Is this possible? I am looking at a capture card like this. I am not using this for game capture, i just need to capture the whole screen. I really appreciate your help!
  3. Hello, I have a code that generates a table of contents on a word document. The code that you see below will generate it on the first page of the word document. I need help with changing the code so that it would generate on the second page of the document. Any help is appreciated. object start = oWord.ActiveDocument.Content.Start;Word.Range rangeForTOC = oDoc.Range(ref oMissing, ref start);
  4. Hello, Basically, i have this code that generates a table of contents in a word document. I am trying to change the range on it to make it appear on the second page of the word doucment. I could use any help! object oTrueValue = true; object start = oWord.ActiveDocument.Content.End - 1; Word.Range rangeForTOC = oDoc.Range(ref start, ref oMissing); Word.TableOfContents toc = oDoc.TablesOfContents.Add(rangeForTOC, ref oTrueValue, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing); toc.Update(); Word.Range rngTOC = toc.Range; rngTOC.Font.Size = 12; rngTOC.Font.Name = "Arial"; rngTOC.Font.Bold = 0;
  5. Hello, The code below should create a word document and then generate a table of contents. it should only have one item called "INTRODUCTION", but i keep getting an error saying "an unhandled exception of type "system.runtime.interopservicesCOMException" Occured. Could you please tell me what is wrong using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;using Word = Microsoft.Office.Interop.Word;using System.Reflection;namespace WindowsFormsApplication27{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { object oMissing = System.Reflection.Missing.Value; object oEndOfDoc = "\\endofdoc"; /* \endofdoc is a predefined bookmark */ //Start Word and create a new document. Word.Application oWord = new Word.Application(); Word.Document oDoc = new Word.Document(); oWord.Visible = true; oDoc = oWord.Documents.Add(ref oMissing, ref oMissing, ref oMissing, ref oMissing); object oTrue = true; object oFalce = false; object styleHeading2 = "Heading 2"; object styleHeading3 = "Heading 3"; oWord.Selection.Range.set_Style(ref styleHeading2); oWord.Selection.Range.set_Style(ref styleHeading3); oWord.Selection.Paragraphs.OutlineLevel = Word.WdOutlineLevel.wdOutlineLevel2; oWord.Selection.Paragraphs.OutlineLevel = Word.WdOutlineLevel.wdOutlineLevel3; oWord.Selection.Paragraphs.OutlineLevel = Word.WdOutlineLevel.wdOutlineLevelBodyText; object oBookMarkTOC = "Bookmark_TOC"; Word.Range rngTOC = oDoc.Bookmarks.get_Item(ref oBookMarkTOC).Range; //<=========================================== The error happens on this line rngTOC.Select(); object oUpperHeadingLevel = "1"; object oLowerHeadingLevel = "3"; object oTOCTableID = "TableOfContents"; oDoc.TablesOfContents.Add(rngTOC, ref oTrue, ref oUpperHeadingLevel, ref oLowerHeadingLevel, ref oMissing, ref oTOCTableID, ref oTrue, ref oTrue, ref oMissing, ref oTrue, ref oTrue, ref oTrue); //******************TABLE OF CONENTES END************** Word.Paragraph oIntro; oIntro = oDoc.Content.Paragraphs.Add(ref oMissing); oIntro.Range.Text = "INTRODUCTION"; oIntro.Range.set_Style(ref styleHeading2); oIntro.Range.Font.Bold = 1; oIntro.Range.Font.Name = "Arial"; oIntro.Range.Font.Size = 12; oIntro.Format.SpaceAfter = 15; oIntro.Range.InsertParagraphAfter(); Word.Paragraph oPara1; oPara1 = oDoc.Content.Paragraphs.Add(ref oMissing); oPara1.Range.Text = "This is the paragraph after the Introduction Title."; oPara1.Range.set_Style(ref styleHeading2); oPara1.Range.Font.Bold = 0; oPara1.Range.Font.Name = "Arial"; oPara1.Range.Font.Size = 12; oPara1.Format.SpaceAfter = 15; oPara1.Range.InsertParagraphAfter(); //Update table of contents oDoc.TablesOfContents[1].Update(); } }}
  6. Hello, I am trying to get the text from a multiple line text box, and then print the input from each line into a separate bullet point. See the pictures below. I am using Microsoft.Office.Interop.Word. I appreciate your help.
  7. I know its not difficult.. but was wondering if i could just have it off.... used to it from my previous laptop.
  8. It annoying cuz i got lots of numbers in my login password
  9. Hello, So i got this new laptop, Dell Inspiron 15 7000 series. The number-lock is on every-time I turn the laptop on. I tried to turn it off from run>regedit, but that failed because apparently it cant override the bios settings. The bios in my laptop does not have the option to turn Number-lock On/Off. Is there any other way other than the two I mentioned to have the Number-lock turned off when i turn the computer on? Thank you!
  10. Hello, I am trying to have a generate a word document. it has a title, and a paragraph under that. The title should be underlined, but the paragraph should not. Seems like i am doing something wrong because when i generate the code, everything is underlined.... is there a different way to under line so that it would cause this? thank you using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;using Word = Microsoft.Office.Interop.Word;using System.Reflection;namespace WindowsFormsApplication20{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void textBox18_TextChanged(object sender, EventArgs e) { } private void textBox17_TextChanged(object sender, EventArgs e) { } private void textBox16_TextChanged(object sender, EventArgs e) { } private void Form1_Load(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { object oMissing = System.Reflection.Missing.Value; object oEndOfDoc = "\\endofdoc"; /* \endofdoc is a predefined bookmark */ //Start Word and create a new document. Word._Application oWord; Word._Document oDoc; oWord = new Word.Application(); oWord.Visible = true; oDoc = oWord.Documents.Add(ref oMissing, ref oMissing, ref oMissing, ref oMissing); // Title Word.Paragraph oPara3stSubTitle; oPara3stSubTitle = oDoc.Content.Paragraphs.Add(ref oMissing); oPara3stSubTitle.Range.Text = "SubTitle Here"; oPara3stSubTitle.Range.Font.Bold = 0; oPara3stSubTitle.Range.Font.Underline = Word.WdUnderline.wdUnderlineSingle; oPara3stSubTitle.FirstLineIndent = 35f; oPara3stSubTitle.Range.Font.Name = "Arial"; oPara3stSubTitle.Range.Font.Size = 12; oPara3stSubTitle.Format.SpaceAfter = 15; oPara3stSubTitle.Range.InsertParagraphAfter(); //Text Under Title Word.Paragraph oPara3stSubPara; oPara3stSubPara = oDoc.Content.Paragraphs.Add(ref oMissing); oPara3stSubPara.Range.Text = "some text inserted here................................"; oPara3stSubPara.Range.Font.Bold = 0; oPara3stSubPara.FirstLineIndent = 35f; oPara3stSubPara.Range.Font.Name = "Arial"; oPara3stSubPara.Range.Font.Size = 12; oPara3stSubPara.Format.SpaceAfter = 15; oPara3stSubPara.Range.InsertParagraphAfter(); } private void textBox6_TextChanged(object sender, EventArgs e) { } private void textBox19_TextChanged(object sender, EventArgs e) { } }}
  11. I don't think that works. I generated the code again without all those extra lines. When i set oPara1.Range.Text = textBox1_TextChanged; , it gives me an error. "Error 1 Cannot convert method group 'textBox1_TextChanged' to non-delegate type 'string'. Did you intend to invoke the method?" using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;using Word = Microsoft.Office.Interop.Word;using System.Reflection;namespace WindowsFormsApplication7{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { object oMissing = System.Reflection.Missing.Value; object oEndOfDoc = "\\endofdoc"; /* \endofdoc is a predefined bookmark */ //Start Word and create a new document. Word._Application oWord; Word._Document oDoc; oWord = new Word.Application(); oWord.Visible = true; oDoc = oWord.Documents.Add(ref oMissing, ref oMissing, ref oMissing, ref oMissing); //Insert a paragraph at the beginning of the document. Word.Paragraph oPara1; oPara1 = oDoc.Content.Paragraphs.Add(ref oMissing); oPara1.Range.Text = textBox1_TextChanged; oPara1.Range.Font.Bold = 1; oPara1.Format.SpaceAfter = 24; //24 pt spacing after paragraph. oPara1.Range.InsertParagraphAfter(); } private void textBox1_TextChanged(object sender, EventArgs e) { } }}
  12. Hi guys, I am sort of a new programmer and kind of stuck with the below box. Basically, I am writing a word document generator using Microsoft.Office.Interop.Word and want to have whatever the user types in the text box textbox1.TextChanged to get printed out in the word document. Please see below. using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;using Microsoft.Office.Interop.Word;using System.Reflection;namespace WindowsFormsApplication4{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void treeView1_AfterSelect(object sender, TreeViewEventArgs e) { } private void textBox1_TextChanged(object sender, EventArgs e) <======================================= THIS { } private void label1_Click(object sender, EventArgs e) { } private void textBox7_TextChanged(object sender, EventArgs e) { } private void textBox6_TextChanged(object sender, EventArgs e) { } private void textBox5_TextChanged(object sender, EventArgs e) { } private void textBox11_TextChanged(object sender, EventArgs e) { } private void textBox9_TextChanged(object sender, EventArgs e) { } private void textBox2_TextChanged(object sender, EventArgs e) { } private void label12_Click(object sender, EventArgs e) { } private void textBox9_TextChanged_1(object sender, EventArgs e) { } private void Form1_Load(object sender, EventArgs e) { } private void textBox18_TextChanged(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { object oMissing = System.Reflection.Missing.Value; object oEndOfDoc = "\\endofdoc"; /* \endofdoc is a predefined bookmark */ //Start Word and create a new document. Word._Application oWord; Word._Document oDoc; oWord = new Word.Application(); oWord.Visible = true; oDoc = oWord.Documents.Add(ref oMissing, ref oMissing, ref oMissing, ref oMissing); //Insert a paragraph at the beginning of the document. Word.Paragraph oPara1; oPara1 = oDoc.Content.Paragraphs.Add(ref oMissing); oPara1.Range.Text = "SOMETHING"; <========================================================= THIS oPara1.Range.Font.Bold = 1; oPara1.Format.SpaceAfter = 24; //24 pt spacing after paragraph. oPara1.Range.InsertParagraphAfter(); } private void button2_Click(object sender, EventArgs e) { } }} Right now it genrates the string "Something". How do i make it so that it generates the input of whatever the user types in textbox1.TextChanged ? I would greatly appreciate your help. Thank you!
  13. I already tried that, it will only output the first character of the name, not the whole name.
  14. Hello, So I am trying to make a program that simply asks the user for their name, then it greets them. I am not sure what data type to assign to the variable. Please see below. #include <stdio.h>main(){????? name;printf("What is your name?");scanf("?????%", &name);printf("Welcome, ?????%", name);} Appreciate your help! Thanks.
×